Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editfield/PhabricatorEditField.php
| Show All 9 Lines | abstract class PhabricatorEditField extends Phobject { | ||||
| private $initialValue; | private $initialValue; | ||||
| private $hasValue = false; | private $hasValue = false; | ||||
| private $object; | private $object; | ||||
| private $transactionType; | private $transactionType; | ||||
| private $metadata = array(); | private $metadata = array(); | ||||
| private $description; | private $description; | ||||
| private $editTypeKey; | private $editTypeKey; | ||||
| private $isRequired; | private $isRequired; | ||||
| private $commentActionLabel; | |||||
| private $isLocked; | private $isLocked; | ||||
| private $isHidden; | private $isHidden; | ||||
| private $isPreview; | private $isPreview; | ||||
| private $isEditDefaults; | private $isEditDefaults; | ||||
| private $isSubmittedForm; | private $isSubmittedForm; | ||||
| private $controlError; | private $controlError; | ||||
| ▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | public function setControlError($control_error) { | ||||
| $this->controlError = $control_error; | $this->controlError = $control_error; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getControlError() { | public function getControlError() { | ||||
| return $this->controlError; | return $this->controlError; | ||||
| } | } | ||||
| public function setCommentActionLabel($label) { | |||||
| $this->commentActionLabel = $label; | |||||
| return $this; | |||||
| } | |||||
| public function getCommentActionLabel() { | |||||
| return $this->commentActionLabel; | |||||
| } | |||||
| protected function newControl() { | protected function newControl() { | ||||
| throw new PhutilMethodNotImplementedException(); | throw new PhutilMethodNotImplementedException(); | ||||
| } | } | ||||
| protected function buildControl() { | protected function buildControl() { | ||||
| $control = $this->newControl(); | $control = $this->newControl(); | ||||
| if ($control === null) { | if ($control === null) { | ||||
| return null; | return null; | ||||
| ▲ Show 20 Lines • Show All 319 Lines • Show Last 20 Lines | |||||