Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104823992
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, Mar 12, 16:58
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Mar 14, 16:58 (2 d)
Engine
blob
Format
Raw Data
Handle
24860993
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