Class: FileCache
Source Location: /blogs/inc/MODEL/files/_filecache.class.php
Class FileCache
Class Overview
|
FileCache Class Located in /blogs/inc/MODEL/files/_filecache.class.php [line 41] DataObjectCache | --FileCacheAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From DataObjectCache |
Inherited From DataObjectCache
|
[ Top ]
Method Summary
| FileCache | FileCache() | Constructor |
| File | &get_by_root_and_path() | Creates an object of the File class, while providing caching and making sure that only one reference to a file exists. |
| Object | &instantiate() | Instantiate a DataObject from a table row and then cache it. |
[ Top ]
Properties
Methods
get_by_root_and_path [line 101]
|
Creates an object of the File class, while providing caching and making sure that only one reference to a file exists.
Parameters:| string | $root_type: | Root type: 'user', 'group' or 'collection' |
| integer | $root_in_type_ID: | ID of the user, the group or the collection the file belongs to... |
| string | $rel_path: | Subpath for this file/folder, relative the associated root, including trailing slash (if directory) |
| boolean | $load_meta: | check for meta data? |
API Tags:
| Return: | an File object |
[ Top ]
instantiate [line 65]
|
Instantiate a DataObject from a table row and then cache it.
Parameters:| Object | &$db_row: | Database row |
Redefinition of:
- DataObjectCache::instantiate()
- Instantiate a DataObject from a table row and then cache it.
[ Top ]
