Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F568108
PhabricatorToken.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1006 B
Referenced Files
None
Subscribers
None
PhabricatorToken.php
View Options
<?php
final
class
PhabricatorToken
extends
PhabricatorTokenDAO
implements
PhabricatorPolicyInterface
{
protected
$phid
;
protected
$name
;
protected
$filePHID
;
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_AUX_PHID
=>
true
,
self
::
CONFIG_NO_TABLE
=>
true
,
)
+
parent
::
getConfiguration
();
}
public
function
getCapabilities
()
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
);
}
public
function
getPolicy
(
$capability
)
{
return
PhabricatorPolicies
::
getMostOpenPolicy
();
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
return
false
;
}
public
function
renderIcon
()
{
// TODO: Maybe move to a View class?
require_celerity_resource
(
'sprite-tokens-css'
);
require_celerity_resource
(
'tokens-css'
);
$sprite
=
substr
(
$this
->
getPHID
(),
10
);
return
id
(
new
PHUIIconView
())
->
setSpriteSheet
(
PHUIIconView
::
SPRITE_TOKENS
)
->
setSpriteIcon
(
$sprite
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 1:14 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
112697
Default Alt Text
PhabricatorToken.php (1006 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment