Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F565759
PhabricatorCustomFieldAttachment.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
823 B
Referenced Files
None
Subscribers
None
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
extends
Phobject
{
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
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 5:53 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
124199
Default Alt Text
PhabricatorCustomFieldAttachment.php (823 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment