|
| filename ($filename) |
| Get full filename for a file. More...
|
|
| init () |
|
| done () |
|
| getSession () |
|
| publish ($property, $visibility=self::READABLE) |
| Publish a property (or hide it again). More...
|
|
| configure ($config) |
| Configure the object. More...
|
|
| _get ($key) |
| Default getter if no specific setter is defined, and the property is also not published (readable). More...
|
|
| _set ($key, $value) |
| Default setter if no specific setter is defined, and the property is also not published (writeable). More...
|
|
Definition at line 5 of file Files.php.
◆ clear()
Delete all files.
Definition at line 83 of file Files.php.
◆ delete()
Delete a file.
- Parameters
-
string | $filename | User filename, including optional directories. |
- Returns
- bool True on success.
Definition at line 72 of file Files.php.
◆ fetch()
Read a file.
- Parameters
-
string | $filename | User filename, including optional directories. |
- Returns
- mixed Data. False on error or null if file does not exist.
Definition at line 64 of file Files.php.
◆ filename()
Get full filename for a file.
- Parameters
-
string | $filename | User filename, including optional directories. |
- Returns
- string Full filename (including root). False if root not set, no user ID, or incorrect filename.
Definition at line 17 of file Files.php.
◆ list()
List files.
- Parameters
-
string | array | $types | Allowed types (regex or array with extensions). |
- Returns
- array Key = full name, value = info.
Definition at line 27 of file Files.php.
◆ save()
save |
( |
|
$filename, |
|
|
|
$data |
|
) |
| |
Save a file.
- Parameters
-
string | $filename | User filename, including optional directories. |
mixed | $data | Data to save. |
- Returns
- int Number of bytes written or false on error.
Definition at line 52 of file Files.php.
◆ total()
Total size used (in bytes).
- Returns
- int
Definition at line 41 of file Files.php.
◆ $_root
Root directory for the user files.
Definition at line 10 of file Files.php.
◆ $_user
◆ $quota
Maximum total user files size (per user; in mega bytes).
Definition at line 7 of file Files.php.
The documentation for this class was generated from the following file:
- /var/www/fred.local/vendor/rsi/fred/src/Rsi/Fred/User/Files.php