Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98177738
PhabricatorOAuthServerTransaction.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
Fri, Jan 10, 17:58
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Jan 12, 17:58 (2 d)
Engine
blob
Format
Raw Data
Handle
23528339
Attached To
rPH Phabricator
PhabricatorOAuthServerTransaction.php
View Options
<?php
final
class
PhabricatorOAuthServerTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'oauthserver.name'
;
const
TYPE_REDIRECT_URI
=
'oauthserver.redirect-uri'
;
public
function
getApplicationName
()
{
return
'oauth_server'
;
}
public
function
getTableName
()
{
return
'oauth_server_transaction'
;
}
public
function
getApplicationTransactionType
()
{
return
PhabricatorOAuthServerClientPHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
null
;
}
public
function
getTitle
()
{
$author_phid
=
$this
->
getAuthorPHID
();
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
switch
(
$this
->
getTransactionType
())
{
case
PhabricatorTransactions
::
TYPE_CREATE
:
return
pht
(
'%s created this OAuth application.'
,
$this
->
renderHandleLink
(
$author_phid
));
case
self
::
TYPE_NAME
:
return
pht
(
'%s renamed this application from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
case
self
::
TYPE_REDIRECT_URI
:
return
pht
(
'%s changed the application redirect URI from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment