Elgg
Version master
|
Locate the relative path of an entity's data dir. More...
Public Member Functions | |
__construct (int $guid) | |
Find an entity's data dir. More... | |
getPath () | |
Construct a file path matrix for an entity. More... | |
__toString () | |
String casting magic method. More... | |
Public Attributes | |
const | BUCKET_SIZE = 5000 |
Number of entries per matrix dir. More... | |
Protected Attributes | |
$guid | |
Locate the relative path of an entity's data dir.
This returns paths like: '1/27/'.
Definition at line 17 of file EntityDirLocator.php.
Elgg\EntityDirLocator::__construct | ( | int | $guid | ) |
Find an entity's data dir.
int | $guid | GUID of the entity. |
RangeException |
Definition at line 36 of file EntityDirLocator.php.
Elgg\EntityDirLocator::__toString | ( | ) |
Elgg\EntityDirLocator::getPath | ( | ) |
Construct a file path matrix for an entity.
As of 1.9.0 matrixes are based on GUIDs and separated into dirs of 5000 entries with the dir name being the lower bound for the GUID.
Definition at line 51 of file EntityDirLocator.php.
|
protected |
Definition at line 27 of file EntityDirLocator.php.
const Elgg\EntityDirLocator::BUCKET_SIZE = 5000 |
Number of entries per matrix dir.
DO NOT CHANGE!
Definition at line 22 of file EntityDirLocator.php.