Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99042607
PhabricatorCustomFieldInterface.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 18, 16:27
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jan 20, 16:27 (2 d)
Engine
blob
Format
Raw Data
Handle
23696238
Attached To
rPH Phabricator
PhabricatorCustomFieldInterface.php
View Options
<?php
interface
PhabricatorCustomFieldInterface
{
public
function
getCustomFieldBaseClass
();
public
function
getCustomFieldSpecificationForRole
(
$role
);
public
function
getCustomFields
(
$role
);
public
function
attachCustomFields
(
$role
,
array
$fields
);
}
// TEMPLATE IMPLEMENTATION /////////////////////////////////////////////////////
/* -( PhabricatorCustomFieldInterface )------------------------------------ */
/*
private $customFields = array();
public function getCustomFieldSpecificationForRole($role) {
return PhabricatorEnv::getEnvConfig(<<<'application.fields'>>>);
}
public function getCustomFieldBaseClass() {
return <<<<'YourApplicationHereCustomField'>>>>;
}
public function getCustomFields($role) {
if (idx($this->customFields, $role) === null) {
PhabricatorCustomField::raiseUnattachedException($this, $role);
}
return $this->customFields[$role];
}
public function attachCustomFields($role, array $fields) {
$this->customFields[$role] = $fields;
return $this;
}
*/
Event Timeline
Log In to Comment