Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P1190
read_fields.php
Active
Public
Actions
Authored by
epriestley
on Jun 30 2014, 8:19 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F172578: read_fields.php
Jun 30 2014, 8:19 PM
2014-06-30 20:19:42 (UTC+0)
Subscribers
None
$field_list
=
PhabricatorCustomField
::
getObjectFields
(
$task
,
PhabricatorCustomField
::
ROLE_DEFAULT
);
$field_list
->
setViewer
(
$user
);
$field_list
->
readFieldsFromStorage
(
$task
);
foreach
(
$field_list
->
getFields
()
as
$field
)
{
$key
=
$field
->
getFieldKey
();
$value
=
$field
->
getValueForStorage
();
// Do something with $key and $value.
}
Event Timeline
epriestley
edited the content of this paste.
(Show Details)
Jun 30 2014, 8:19 PM
2014-06-30 20:19:42 (UTC+0)
epriestley
changed the title of this paste from untitled to
read_fields.php
.
epriestley
updated the paste's language from
autodetect
to
autodetect
.
Log In to Comment