Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F546419
DivinerController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
890 B
Referenced Files
None
Subscribers
None
DivinerController.php
View Options
<?php
abstract
class
DivinerController
extends
PhabricatorController
{
public
function
buildApplicationMenu
()
{
return
$this
->
newApplicationMenu
()
->
setSearchEngine
(
new
DivinerAtomSearchEngine
());
}
protected
function
renderAtomList
(
array
$symbols
)
{
assert_instances_of
(
$symbols
,
'DivinerLiveSymbol'
);
$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 12, 1:14 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122590
Default Alt Text
DivinerController.php (890 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment