Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F455393
DivinerController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
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
)
{
switch
(
$symbol
->
getType
())
{
case
DivinerAtom
::
TYPE_FUNCTION
:
$title
=
$symbol
->
getTitle
().
'()'
;
break
;
default
:
$title
=
$symbol
->
getTitle
();
break
;
}
$item
=
id
(
new
DivinerBookItemView
())
->
setTitle
(
$title
)
->
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
Mon, May 5, 6:57 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
70444
Default Alt Text
DivinerController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment