Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94115892
PhabricatorSearchResultBucket.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Dec 4, 01:10
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Dec 6, 01:10 (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
22738648
Attached To
rPH Phabricator
PhabricatorSearchResultBucket.php
View Options
<?php
abstract
class
PhabricatorSearchResultBucket
extends
Phobject
{
private
$viewer
;
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
;
}
public
function
setViewer
(
PhabricatorUser
$viewer
)
{
$this
->
viewer
=
$viewer
;
return
$this
;
}
public
function
getViewer
()
{
return
$this
->
viewer
;
}
protected
function
getDefaultPageSize
()
{
return
1000
;
}
abstract
public
function
getResultBucketName
();
abstract
protected
function
buildResultGroups
(
PhabricatorSavedQuery
$query
,
array
$objects
);
final
public
function
newResultGroups
(
PhabricatorSavedQuery
$query
,
array
$objects
)
{
return
$this
->
buildResultGroups
(
$query
,
$objects
);
}
final
public
function
getResultBucketKey
()
{
return
$this
->
getPhobjectClassConstant
(
'BUCKETKEY'
);
}
final
protected
function
newGroup
()
{
return
new
PhabricatorSearchResultBucketGroup
();
}
}
Event Timeline
Log In to Comment