Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101733614
PhabricatorBadgesListController.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
Thu, Feb 13, 04:09
Size
815 B
Mime Type
text/x-php
Expires
Sat, Feb 15, 04:09 (2 d)
Engine
blob
Format
Raw Data
Handle
24212202
Attached To
rPH Phabricator
PhabricatorBadgesListController.php
View Options
<?php
final
class
PhabricatorBadgesListController
extends
PhabricatorBadgesController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
return
id
(
new
PhabricatorBadgesSearchEngine
())
->
setController
(
$this
)
->
buildResponse
();
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$can_create
=
$this
->
hasApplicationCapability
(
PhabricatorBadgesCreateCapability
::
CAPABILITY
);
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Create Badge'
))
->
setHref
(
$this
->
getApplicationURI
(
'create/'
))
->
setIcon
(
'fa-plus-square'
)
->
setDisabled
(!
$can_create
)
->
setWorkflow
(!
$can_create
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment