Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F35313198
DivinerController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
DivinerController.php
View Options
<?php
abstract
class
DivinerController
extends
PhabricatorController
{
protected
function
buildSideNavView
()
{
$menu
=
$this
->
buildMenu
();
return
AphrontSideNavFilterView
::
newFromMenu
(
$menu
);
}
protected
function
buildApplicationMenu
()
{
return
$this
->
buildMenu
();
}
private
function
buildMenu
()
{
$menu
=
new
PHUIListView
();
id
(
new
DivinerAtomSearchEngine
())
->
setViewer
(
$this
->
getRequest
()->
getUser
())
->
addNavigationItems
(
$menu
);
return
$menu
;
}
protected
function
renderAtomList
(
array
$symbols
)
{
assert_instances_of
(
$symbols
,
'DivinerLiveSymbol'
);
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$list
=
array
();
foreach
(
$symbols
as
$symbol
)
{
$item
=
id
(
new
DivinerBookItemView
())
->
setTitle
(
$symbol
->
getTitle
())
->
setHref
(
$symbol
->
getURI
())
->
setSubtitle
(
$symbol
->
getSummary
())
->
setType
(
DivinerAtom
::
getAtomTypeNameString
(
$symbol
->
getType
()));
$list
[]
=
$item
;
}
return
$list
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Feb 5, 9:21 PM (20 m, 10 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ec/4e/040e8c77f78c4a583bdd2b7f8894
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment