Differential D20161 Diff 48140 src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
| Show All 12 Lines | abstract class PhabricatorStandardCustomField | ||||
| private $strings = array(); | private $strings = array(); | ||||
| private $caption; | private $caption; | ||||
| private $fieldError; | private $fieldError; | ||||
| private $required; | private $required; | ||||
| private $default; | private $default; | ||||
| private $isCopyable; | private $isCopyable; | ||||
| private $hasStorageValue; | private $hasStorageValue; | ||||
| private $isBuiltin; | private $isBuiltin; | ||||
| private $isEnabled = true; | |||||
| abstract public function getFieldType(); | abstract public function getFieldType(); | ||||
| public static function buildStandardFields( | public static function buildStandardFields( | ||||
| PhabricatorCustomField $template, | PhabricatorCustomField $template, | ||||
| array $config, | array $config, | ||||
| $builtin = false) { | $builtin = false) { | ||||
| ▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | public function setRawStandardFieldKey($raw_key) { | ||||
| $this->rawKey = $raw_key; | $this->rawKey = $raw_key; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getRawStandardFieldKey() { | public function getRawStandardFieldKey() { | ||||
| return $this->rawKey; | return $this->rawKey; | ||||
| } | } | ||||
| public function setIsEnabled($is_enabled) { | |||||
| $this->isEnabled = $is_enabled; | |||||
| return $this; | |||||
| } | |||||
| public function getIsEnabled() { | |||||
| return $this->isEnabled; | |||||
| } | |||||
| public function isFieldEnabled() { | |||||
| return $this->getIsEnabled(); | |||||
| } | |||||
| /* -( PhabricatorCustomField )--------------------------------------------- */ | /* -( PhabricatorCustomField )--------------------------------------------- */ | ||||
| public function setFieldKey($field_key) { | public function setFieldKey($field_key) { | ||||
| $this->fieldKey = $field_key; | $this->fieldKey = $field_key; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 318 Lines • Show Last 20 Lines | |||||