Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117762764
PhabricatorCustomFieldAttachment.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
Sun, Jun 15, 20:50
Size
806 B
Mime Type
text/x-php
Expires
Tue, Jun 17, 20:50 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26796787
Attached To
rPH Phabricator
PhabricatorCustomFieldAttachment.php
View Options
<?php
/**
* Convenience class which simplifies the implementation of
* @{interface:PhabricatorCustomFieldInterface} by obscuring the details of how
* custom fields are stored.
*
* Generally, you should not use this class directly. It is used by
* @{class:PhabricatorCustomField} to manage field storage on objects.
*/
final
class
PhabricatorCustomFieldAttachment
{
private
$lists
=
array
();
public
function
addCustomFieldList
(
$role
,
PhabricatorCustomFieldList
$list
)
{
$this
->
lists
[
$role
]
=
$list
;
return
$this
;
}
public
function
getCustomFieldList
(
$role
)
{
if
(
empty
(
$this
->
lists
[
$role
]))
{
throw
new
PhabricatorCustomFieldNotAttachedException
(
pht
(
"Role list '%s' is not available!"
,
$role
));
}
return
$this
->
lists
[
$role
];
}
}
Event Timeline
Log In to Comment