Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94134805
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
Wed, Dec 4, 04:24
Size
851 B
Mime Type
text/x-php
Expires
Fri, Dec 6, 04:24 (2 d)
Engine
blob
Format
Raw Data
Handle
22741837
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