Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98295526
DrydockBlueprintCoreCustomField.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, Jan 11, 20:55
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jan 13, 20:55 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23551977
Attached To
rPH Phabricator
DrydockBlueprintCoreCustomField.php
View Options
<?php
final
class
DrydockBlueprintCoreCustomField
extends
DrydockBlueprintCustomField
implements
PhabricatorStandardCustomFieldInterface
{
public
function
getStandardCustomFieldNamespace
()
{
return
'drydock:core'
;
}
public
function
createFields
(
$object
)
{
$impl
=
$object
->
getImplementation
();
$specs
=
$impl
->
getFieldSpecifications
();
return
PhabricatorStandardCustomField
::
buildStandardFields
(
$this
,
$specs
);
}
public
function
shouldUseStorage
()
{
return
false
;
}
public
function
readValueFromObject
(
PhabricatorCustomFieldInterface
$object
)
{
$key
=
$this
->
getProxy
()->
getRawStandardFieldKey
();
$this
->
setValueFromStorage
(
$object
->
getDetail
(
$key
));
}
public
function
applyApplicationTransactionInternalEffects
(
PhabricatorApplicationTransaction
$xaction
)
{
$object
=
$this
->
getObject
();
$key
=
$this
->
getProxy
()->
getRawStandardFieldKey
();
$this
->
setValueFromApplicationTransactions
(
$xaction
->
getNewValue
());
$value
=
$this
->
getValueForStorage
();
$object
->
setDetail
(
$key
,
$value
);
}
public
function
applyApplicationTransactionExternalEffects
(
PhabricatorApplicationTransaction
$xaction
)
{
return
;
}
}
Event Timeline
Log In to Comment