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

Constants

APPEND

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

public mixed APPEND = 'append'

CONTENT

The content to write into the file.

public mixed CONTENT = 'content'

FILE

The path of the file to create or modify.

public mixed FILE = 'file'

FORCE

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

public mixed FORCE = 'force'

GROUP

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

public mixed GROUP = 'group'

LOCK

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

public mixed LOCK = 'lock'

OVERWRITE

If true, overwrites existing files. Default: false.

public mixed OVERWRITE = 'overwrite'

OWNER

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

public mixed OWNER = 'owner'

PERMISSIONS

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

public mixed PERMISSIONS = 'permissions'

        
On this page

Search results