Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99030058
DivinerListController.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
Sat, Jan 18, 14:35
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jan 20, 14:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23693789
Attached To
rPH Phabricator
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
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'aphront-directory-list'
),
$out
);
return
$this
->
buildApplicationPage
(
$out
,
array
(
'device'
=>
true
,
'title'
=>
'Documentation'
,
));
}
}
Event Timeline
Log In to Comment