Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F568242
PhabricatorStandardCustomFieldBlueprints.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
991 B
Referenced Files
None
Subscribers
None
PhabricatorStandardCustomFieldBlueprints.php
View Options
<?php
final
class
PhabricatorStandardCustomFieldBlueprints
extends
PhabricatorStandardCustomFieldTokenizer
{
public
function
getFieldType
()
{
return
'blueprints'
;
}
public
function
getDatasource
()
{
return
new
DrydockBlueprintDatasource
();
}
public
function
applyApplicationTransactionExternalEffects
(
PhabricatorApplicationTransaction
$xaction
)
{
$old
=
$this
->
decodeValue
(
$xaction
->
getOldValue
());
$new
=
$this
->
decodeValue
(
$xaction
->
getNewValue
());
DrydockAuthorization
::
applyAuthorizationChanges
(
$this
->
getViewer
(),
$xaction
->
getObjectPHID
(),
$old
,
$new
);
}
protected
function
renderValue
()
{
$value
=
$this
->
getFieldValue
();
if
(!
$value
)
{
return
phutil_tag
(
'em'
,
array
(),
pht
(
'No authorized blueprints.'
));
}
return
id
(
new
DrydockObjectAuthorizationView
())
->
setUser
(
$this
->
getViewer
())
->
setObjectPHID
(
$this
->
getObject
()->
getPHID
())
->
setBlueprintPHIDs
(
$value
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 1:20 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
124382
Default Alt Text
PhabricatorStandardCustomFieldBlueprints.php (991 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment