|
Stud.IP
jlu_3.3 Revision
|


Public Member Functions | |
| __construct ($storage_id=NULL, $user_id=null) | |
| delete () | |
| getPath () | |
| exists () | |
| getCreationTime () | |
| getId () | |
| getMimeType ($filename=null) | |
| getModificationTime () | |
| getSize () | |
| isReadable () | |
| isWritable () | |
| open ($mode) | |
Public Member Functions inherited from FileStorage | |
| delete () | |
| exists () | |
| getCreationTime () | |
| getId () | |
| getMimeType () | |
| getModificationTime () | |
| getSize () | |
| isReadable () | |
| isWritable () | |
| open ($mode) | |
Static Public Member Functions | |
| static | getQuotaUsage ($user_id) |
Protected Attributes | |
| $storage_id | |
| $file_path | |
Copyright (c) 2013 Elmar Ludwig
Class to represent files on disk (the only supported backend for now).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
| __construct | ( | $storage_id = NULL, |
|
$user_id = null |
|||
| ) |
Initialize a new DiskFileStorage object for the given id. A new (empty) file is created of storage_id is NULL.
| string | $storage_id | file id or NULL |
| delete | ( | ) |
| exists | ( | ) |
Check whether the file exists on disk.
Implements FileStorage.

| getCreationTime | ( | ) |
| getId | ( | ) |
| getMimeType | ( | $filename = null | ) |
Return the file's mime type, if known.
| string | $filename | Optional filename if storage_id's do not provide enough information (like file extension) |

| getModificationTime | ( | ) |
| getPath | ( | ) |
|
static |


| getSize | ( | ) |
| isReadable | ( | ) |
| isWritable | ( | ) |
| open | ( | $mode | ) |
Open a PHP stream resource for this file. Access mode parameter works just like fopen.
| string | $mode | access mode (see fopen) |
Implements FileStorage.
|
protected |
|
protected |