22 const BUCKET_SIZE = 5000;
52 $bound = $this->getLowerBucketBound($this->guid);
54 return "{$bound}/{$this->guid}/";
63 return $this->getPath();
73 private function getLowerBucketBound(
int $guid):
int {
74 return (
int)
max(floor($guid / self::BUCKET_SIZE) * self::BUCKET_SIZE, 1);
Exception thrown to indicate range errors during program execution.
__construct(int $guid)
Find an entity's data dir.
getPath()
Construct a file path matrix for an entity.
Locate the relative path of an entity's data dir.
$guid
Reset an ElggUpgrade.
__toString()
String casting magic method.