Filesystem
extends Component
in package
FinalYes
Tags
Table of Contents
Properties
- $hashCode : int
- $hashCounter : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- chmod() : bool
- create() : bool
- Writes a string to a file. This method will force the flag LOCK_EX onto the $flags arguments passed.
- exists() : bool
- extends() : bool
- extFromDataURI() : string
- getContents() : string
- getModifiedDateTime() : DateTime
- getReflection() : ReflectionClass
- glob() : mixed
- makeDirectory() : mixed
- putContents() : bool
- unlink() : bool
- init() : mixed
Properties
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
chmod()
public
static chmod(string $filepath, int $mode) : bool
Parameters
- $filepath : string
- $mode : int
Tags
Return values
boolcreate()
Writes a string to a file. This method will force the flag LOCK_EX onto the $flags arguments passed.
public
static create(string $filepath[, string|array<string|int, mixed>|resource $data = '' ][, int|null $flags = null ][, int|null $mode = null ]) : bool
Parameters
- $filepath : string
-
A relative or absolute path to the file to write to
- $data : string|array<string|int, mixed>|resource = ''
-
The data to write to the file
- $flags : int|null = null
-
The flags to use in writing to the file. The list of acceptable flags are FILE_USE_INCLUDE_PATH, FILE_APPEND and LOCK_EX
- $mode : int|null = null
-
The mode the file should be changed to after creation, null if the mode should not be changed
Tags
Return values
boolexists()
public
static exists(string $filename) : bool
Parameters
- $filename : string
Return values
boolextends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolextFromDataURI()
public
static extFromDataURI(string $data_uri) : string
Parameters
- $data_uri : string
Tags
Return values
stringgetContents()
public
static getContents(string $filepath) : string
Parameters
- $filepath : string
Tags
Return values
stringgetModifiedDateTime()
public
static getModifiedDateTime(string $filepath) : DateTime
Parameters
- $filepath : string
Tags
Return values
DateTimegetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassglob()
public
static glob(string $pattern[, $flags = 0 ]) : mixed
Parameters
Tags
makeDirectory()
public
static makeDirectory(string $pathname[, int $mode = 0777 ][, bool $recursive = true ][, resource $context = null ]) : mixed
Parameters
- $pathname : string
- $mode : int = 0777
- $recursive : bool = true
- $context : resource = null
Tags
putContents()
public
static putContents(string $filepath, string $contents[, number $flags = null ]) : bool
Parameters
- $filepath : string
- $contents : string
- $flags : number = null
Tags
Return values
boolunlink()
public
static unlink(string $filepath) : bool
Parameters
- $filepath : string
Return values
boolinit()
protected
init() : mixed