Oihana PHP

MakeFileOption uses ConstantsTrait

Enumeration class that defines various options to use in the makeFile function.

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0

Table of Contents

Constants

APPEND  : string = 'append'
If true, appends content instead of overwriting. Default: false.
CONTENT  : string = 'content'
The content to write into the file.
FILE  : string = 'file'
The path of the file to create or modify.
FORCE  : string = 'force'
If true, creates parent directories if they do not exist. Default: true.
GROUP  : string = 'group'
Group name or ID to set as file group owner. Default: null.
LOCK  : string = 'lock'
If true, uses an exclusive lock while writing. Default: true.
OVERWRITE  : string = 'overwrite'
If true, overwrites existing files. Default: false.
OWNER  : string = 'owner'
User name or ID to set as file owner. Default: null.
PERMISSIONS  : string = 'permissions'
File permissions to set (octal). Default: 0644.

Constants

APPEND

If true, appends content instead of overwriting. Default: false.

public string APPEND = 'append'

CONTENT

The content to write into the file.

public string CONTENT = 'content'

FILE

The path of the file to create or modify.

public string FILE = 'file'

FORCE

If true, creates parent directories if they do not exist. Default: true.

public string FORCE = 'force'

GROUP

Group name or ID to set as file group owner. Default: null.

public string GROUP = 'group'

LOCK

If true, uses an exclusive lock while writing. Default: true.

public string LOCK = 'lock'

OVERWRITE

If true, overwrites existing files. Default: false.

public string OVERWRITE = 'overwrite'

OWNER

User name or ID to set as file owner. Default: null.

public string OWNER = 'owner'

PERMISSIONS

File permissions to set (octal). Default: 0644.

public string PERMISSIONS = 'permissions'
On this page

Search results