Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93190911
PhabricatorHomeQuickCreateController.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, Nov 26, 21:50
Size
816 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 21:50 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22592694
Attached To
rPH Phabricator
PhabricatorHomeQuickCreateController.php
View Options
<?php
final
class
PhabricatorHomeQuickCreateController
extends
PhabricatorHomeController
{
public
function
processRequest
()
{
$viewer
=
$this
->
getRequest
()->
getUser
();
$items
=
$this
->
getCurrentApplication
()->
loadAllQuickCreateItems
(
$viewer
);
$list
=
id
(
new
PHUIObjectItemListView
())
->
setUser
(
$viewer
);
foreach
(
$items
as
$item
)
{
$list
->
addItem
(
id
(
new
PHUIObjectItemView
())
->
setHeader
(
$item
->
getName
())
->
setWorkflow
(
$item
->
getWorkflow
())
->
setHref
(
$item
->
getHref
()));
}
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
pht
(
'Quick Create'
));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$list
,
),
array
(
'title'
=>
pht
(
'Quick Create'
),
));
}
}
Event Timeline
Log In to Comment