34 throw new InvalidArgumentException(
"GUIDs must be integers > 0.");
48 $bound = $this->getLowerBucketBound($this->guid);
49 return "$bound/$this->guid/";
68 private static function getLowerBucketBound(
$guid, $bucket_size = null) {
69 if (!$bucket_size || $bucket_size < 1) {
70 $bucket_size = self::BUCKET_SIZE;
75 return (
int) max(floor(
$guid / $bucket_size) * $bucket_size, 1);
$guid
Removes an admin notice.
__toString()
String casting magic method.
__construct($guid)
Find an entity's data dir.
const BUCKET_SIZE
Number of entries per matrix dir.
getPath()
Construct a file path matrix for an entity.