3 interface PhabricatorCustomFieldInterface
{
5 public function getCustomFieldBaseClass();
6 public function getCustomFieldSpecificationForRole($role);
7 public function getCustomFields();
8 public function attachCustomFields(PhabricatorCustomFieldAttachment
$fields);
13 // TEMPLATE IMPLEMENTATION /////////////////////////////////////////////////////
16 /* -( PhabricatorCustomFieldInterface )------------------------------------ */
19 private $customFields = self::ATTACHABLE;
21 public function getCustomFieldSpecificationForRole($role) {
22 return PhabricatorEnv::getEnvConfig(<<<'application.fields'>>>);
25 public function getCustomFieldBaseClass() {
26 return <<<<'YourApplicationHereCustomField'>>>>;
29 public function getCustomFields() {
30 return $this->assertAttached($this->customFields);
33 public function attachCustomFields(PhabricatorCustomFieldAttachment $fields) {
34 $this->customFields = $fields;