FileSystemFile
in package
implements
FileInterface
File System File
This class provides an object based interface to a file that resides on the local file system.
Tags
Table of Contents
Interfaces
- FileInterface
- FileInterface
Properties
- $privileged : bool
- If set to TRUE then access to all files of a Cloudrexx installation is granted. Otherwise, access is only being granted to files located in: - /images - /media - /themes - /tmp/session-<sid>
- $filePath : mixed
Methods
- __construct() : mixed
- Create a new FileSystemFile object that acts as an interface to a file located on the local file system.
- append() : mixed
- copy() : mixed
- delete() : mixed
- getAbsoluteFilePath() : string
- Get the absolute path of the file($this->file)
- getFileOwner() : mixed
- getFilePermissions() : mixed
- isPrivileged() : bool
- Whether this instance has privileged file system access.
- isWritable() : mixed
- makeWritable() : mixed
- move() : mixed
- rename() : mixed
- touch() : mixed
- write() : mixed
Properties
$privileged
If set to TRUE then access to all files of a Cloudrexx installation is granted. Otherwise, access is only being granted to files located in: - /images - /media - /themes - /tmp/session-<sid>
protected
bool
$privileged
= false
$filePath
private
mixed
$filePath
= null
Methods
__construct()
Create a new FileSystemFile object that acts as an interface to a file located on the local file system.
public
__construct(mixed $file) : mixed
Parameters
- $file : mixed
append()
public
append(mixed $data) : mixed
Parameters
- $data : mixed
copy()
public
copy(mixed $dst) : mixed
Parameters
- $dst : mixed
delete()
public
delete() : mixed
getAbsoluteFilePath()
Get the absolute path of the file($this->file)
public
getAbsoluteFilePath() : string
Return values
string —absolute path of the file
getFileOwner()
public
getFileOwner() : mixed
getFilePermissions()
public
getFilePermissions() : mixed
isPrivileged()
Whether this instance has privileged file system access.
public
isPrivileged() : bool
Return values
boolisWritable()
public
isWritable() : mixed
makeWritable()
public
makeWritable() : mixed
move()
public
move(mixed $dst) : mixed
Parameters
- $dst : mixed
rename()
public
rename(mixed $dst) : mixed
Parameters
- $dst : mixed
touch()
public
touch() : mixed
write()
public
write(mixed $data) : mixed
Parameters
- $data : mixed