Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93592835
PhabricatorPeopleInviteListController.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, Nov 30, 00:26
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Dec 2, 00:26 (2 d)
Engine
blob
Format
Raw Data
Handle
22672283
Attached To
rPH Phabricator
PhabricatorPeopleInviteListController.php
View Options
<?php
final
class
PhabricatorPeopleInviteListController
extends
PhabricatorPeopleInviteController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$controller
=
id
(
new
PhabricatorApplicationSearchController
())
->
setQueryKey
(
$request
->
getURIData
(
'queryKey'
))
->
setSearchEngine
(
new
PhabricatorAuthInviteSearchEngine
())
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
buildSideNavView
(
$for_app
=
false
)
{
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
$viewer
=
$this
->
getRequest
()->
getUser
();
id
(
new
PhabricatorAuthInviteSearchEngine
())
->
setViewer
(
$viewer
)
->
addNavigationItems
(
$nav
->
getMenu
());
return
$nav
;
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$can_invite
=
$this
->
hasApplicationCapability
(
PeopleCreateUsersCapability
::
CAPABILITY
);
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Invite Users'
))
->
setHref
(
$this
->
getApplicationURI
(
'invite/send/'
))
->
setIcon
(
'fa-plus-square'
)
->
setDisabled
(!
$can_invite
)
->
setWorkflow
(!
$can_invite
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment