Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F452507
DivinerListController.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
DivinerListController.php
View Options
<?php
final
class
DivinerListController
extends
PhabricatorController
{
public
function
processRequest
()
{
// TODO: Temporary implementation until Diviner is up and running inside
// Phabricator.
$links
=
array
(
'http://www.phabricator.com/docs/phabricator/'
=>
array
(
'name'
=>
'Phabricator Ducks'
,
'flavor'
=>
'Oops, that should say "Docs".'
,
),
'http://www.phabricator.com/docs/arcanist/'
=>
array
(
'name'
=>
'Arcanist Docs'
,
'flavor'
=>
'Words have never been so finely crafted.'
,
),
'http://www.phabricator.com/docs/libphutil/'
=>
array
(
'name'
=>
'libphutil Docs'
,
'flavor'
=>
'Soothing prose; seductive poetry.'
,
),
'http://www.phabricator.com/docs/javelin/'
=>
array
(
'name'
=>
'Javelin Docs'
,
'flavor'
=>
'O, what noble scribe hath penned these words?'
,
),
);
require_celerity_resource
(
'phabricator-directory-css'
);
$out
=
array
();
foreach
(
$links
as
$href
=>
$link
)
{
$name
=
$link
[
'name'
];
$flavor
=
$link
[
'flavor'
];
$link
=
phutil_tag
(
'a'
,
array
(
'href'
=>
$href
,
'target'
=>
'_blank'
,
),
$name
);
$out
[]
=
hsprintf
(
'<div class="aphront-directory-item">'
.
'<h1>%s</h1>'
.
'<p>%s</p>'
.
'</div>'
,
$link
,
$flavor
);
}
$out
=
'<div class="aphront-directory-list">'
.
implode
(
"
\n
"
,
$out
).
'</div>'
;
return
$this
->
buildApplicationPage
(
$out
,
array
(
'device'
=>
true
,
'title'
=>
'Documentation'
,
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 12:40 AM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
68824
Default Alt Text
DivinerListController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment