Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98118091
PhabricatorApplicationSearchResultView.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
Thu, Jan 9, 23:40
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Jan 11, 23:40 (2 d)
Engine
blob
Format
Raw Data
Handle
23509111
Attached To
rPH Phabricator
PhabricatorApplicationSearchResultView.php
View Options
<?php
/**
* Holds bits and pieces of UI information for Search Engine
* and Dashboard Panel rendering, describing the results and
* controls for presentation.
*/
final
class
PhabricatorApplicationSearchResultView
extends
Phobject
{
private
$objectList
=
null
;
private
$table
=
null
;
private
$content
=
null
;
private
$infoView
=
null
;
private
$actions
=
array
();
private
$noDataString
;
private
$crumbs
=
array
();
private
$header
;
public
function
setObjectList
(
PHUIObjectItemListView
$list
)
{
$this
->
objectList
=
$list
;
return
$this
;
}
public
function
getObjectList
()
{
$list
=
$this
->
objectList
;
if
(
$list
)
{
if
(
$this
->
noDataString
)
{
$list
->
setNoDataString
(
$this
->
noDataString
);
}
else
{
$list
->
setNoDataString
(
pht
(
'No results found for this query.'
));
}
}
return
$list
;
}
public
function
setTable
(
$table
)
{
$this
->
table
=
$table
;
return
$this
;
}
public
function
getTable
()
{
return
$this
->
table
;
}
public
function
setInfoView
(
PHUIInfoView
$infoview
)
{
$this
->
infoView
=
$infoview
;
return
$this
;
}
public
function
getInfoView
()
{
return
$this
->
infoView
;
}
public
function
setContent
(
$content
)
{
$this
->
content
=
$content
;
return
$this
;
}
public
function
getContent
()
{
return
$this
->
content
;
}
public
function
addAction
(
PHUIButtonView
$button
)
{
$this
->
actions
[]
=
$button
;
return
$this
;
}
public
function
getActions
()
{
return
$this
->
actions
;
}
public
function
setNoDataString
(
$nodata
)
{
$this
->
noDataString
=
$nodata
;
return
$this
;
}
public
function
setCrumbs
(
array
$crumbs
)
{
assert_instances_of
(
$crumbs
,
'PHUICrumbView'
);
$this
->
crumbs
=
$crumbs
;
return
$this
;
}
public
function
getCrumbs
()
{
return
$this
->
crumbs
;
}
public
function
setHeader
(
PHUIHeaderView
$header
)
{
$this
->
header
=
$header
;
return
$this
;
}
public
function
getHeader
()
{
return
$this
->
header
;
}
}
Event Timeline
Log In to Comment