Class: FileRootCache
Source Location: /blogs/inc/MODEL/files/_filerootcache.class.php
Class FileRootCache
Class Overview
|
This class provides info about File Roots. These are root directories available for media file storage, under access permission. Located in /blogs/inc/MODEL/files/_filerootcache.class.php [line 46] |
[ Top ]
Method Summary
| FileRoot|false | &get_by_ID() | Get a FileRoot (cached) by ID. |
| FileRoot|false | &get_by_type_and_ID() | Get a FileRoot (cached). |
| string | get_root_dir() | Get the absolute path (FileRoot::ads_path) to a given root (with ending slash). |
[ Top ]
Methods
get_by_ID [line 60]
|
Get a FileRoot (cached) by ID.
Parameters:| string | $id: | ID of the FileRoot (e.g. 'user_X' or 'collection_X') |
API Tags:
| Return: | FileRoot on success, false on failure (ads_path is false). |
[ Top ]
get_by_type_and_ID [line 77]
|
Get a FileRoot (cached).
Parameters:| string | $root_type: | Root type: 'user', 'group', 'collection' or 'absolute' |
| integer | $root_in_type_ID: | ID of the user, the group or the collection the file belongs to... |
API Tags:
| Return: | FileRoot on success, false on failure (ads_path is false). |
[ Top ]
