Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77469465
PhabricatorDashboardPanelCoreCustomField.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, Aug 14, 16:19
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Aug 16, 16:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19872535
Attached To
rPH Phabricator
PhabricatorDashboardPanelCoreCustomField.php
View Options
<?php
final
class
PhabricatorDashboardPanelCoreCustomField
extends
PhabricatorDashboardPanelCustomField
implements
PhabricatorStandardCustomFieldInterface
{
public
function
getStandardCustomFieldNamespace
()
{
return
'dashboard:core'
;
}
public
function
createFields
(
$object
)
{
$impl
=
$object
->
requireImplementation
();
$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
->
getProperty
(
$key
));
$this
->
didSetValueFromStorage
();
}
public
function
applyApplicationTransactionInternalEffects
(
PhabricatorApplicationTransaction
$xaction
)
{
$object
=
$this
->
getObject
();
$key
=
$this
->
getProxy
()->
getRawStandardFieldKey
();
$this
->
setValueFromApplicationTransactions
(
$xaction
->
getNewValue
());
$value
=
$this
->
getValueForStorage
();
$object
->
setProperty
(
$key
,
$value
);
}
public
function
applyApplicationTransactionExternalEffects
(
PhabricatorApplicationTransaction
$xaction
)
{
return
;
}
}
Event Timeline
Log In to Comment