Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77197830
DivinerController.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
Tue, Aug 13, 01:33
Size
890 B
Mime Type
text/x-php
Expires
Thu, Aug 15, 01:33 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
19812071
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment