Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96615905
PhabricatorOAuthClientController.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, Dec 28, 23:21
Size
851 B
Mime Type
text/x-php
Expires
Mon, Dec 30, 23:21 (1 d, 8 h)
Engine
blob
Format
Raw Data
Handle
23215888
Attached To
rPH Phabricator
PhabricatorOAuthClientController.php
View Options
<?php
abstract
class
PhabricatorOAuthClientController
extends
PhabricatorOAuthServerController
{
private
$clientPHID
;
protected
function
getClientPHID
()
{
return
$this
->
clientPHID
;
}
private
function
setClientPHID
(
$phid
)
{
$this
->
clientPHID
=
$phid
;
return
$this
;
}
public
function
shouldRequireLogin
()
{
return
true
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
setClientPHID
(
idx
(
$data
,
'phid'
));
}
public
function
buildSideNavView
(
$for_app
=
false
)
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
id
(
new
PhabricatorOAuthServerClientSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
}
Event Timeline
Log In to Comment