mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
32 lines
589 B
PHP
32 lines
589 B
PHP
|
<?php
|
||
|
|
||
|
abstract class PhabricatorSearchResultBucket
|
||
|
extends Phobject {
|
||
|
|
||
|
private $pageSize;
|
||
|
|
||
|
final public function setPageSize($page_size) {
|
||
|
$this->pageSize = $page_size;
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
final public function getPageSize() {
|
||
|
if ($this->pageSize === null) {
|
||
|
return $this->getDefaultPageSize();
|
||
|
}
|
||
|
|
||
|
return $this->pageSize;
|
||
|
}
|
||
|
|
||
|
protected function getDefaultPageSize() {
|
||
|
return 1000;
|
||
|
}
|
||
|
|
||
|
abstract public function getResultBucketName();
|
||
|
|
||
|
final public function getResultBucketKey() {
|
||
|
return $this->getPhobjectClassConstant('BUCKETKEY');
|
||
|
}
|
||
|
|
||
|
}
|