Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/edittype/PhabricatorEditType.php
| <?php | <?php | ||||
| abstract class PhabricatorEditType extends Phobject { | abstract class PhabricatorEditType extends Phobject { | ||||
| private $editType; | private $editType; | ||||
| private $transactionType; | private $transactionType; | ||||
| private $label; | |||||
| private $field; | private $field; | ||||
| private $description; | private $description; | ||||
| private $summary; | private $summary; | ||||
| private $metadata = array(); | private $metadata = array(); | ||||
| public function setDescription($description) { | public function setDescription($description) { | ||||
| $this->description = $description; | $this->description = $description; | ||||
| return $this; | return $this; | ||||
| Show All 10 Lines | abstract class PhabricatorEditType extends Phobject { | ||||
| public function getSummary() { | public function getSummary() { | ||||
| if ($this->summary === null) { | if ($this->summary === null) { | ||||
| return $this->getDescription(); | return $this->getDescription(); | ||||
| } | } | ||||
| return $this->summary; | return $this->summary; | ||||
| } | } | ||||
| public function setLabel($label) { | |||||
| $this->label = $label; | |||||
| return $this; | |||||
| } | |||||
| public function getLabel() { | |||||
| return $this->label; | |||||
| } | |||||
| public function setField(PhabricatorEditField $field) { | public function setField(PhabricatorEditField $field) { | ||||
| $this->field = $field; | $this->field = $field; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getField() { | public function getField() { | ||||
| return $this->field; | return $this->field; | ||||
| } | } | ||||
| Show All 40 Lines | protected function newTransaction( | ||||
| foreach ($this->getMetadata() as $key => $value) { | foreach ($this->getMetadata() as $key => $value) { | ||||
| $xaction->setMetadataValue($key, $value); | $xaction->setMetadataValue($key, $value); | ||||
| } | } | ||||
| return $xaction; | return $xaction; | ||||
| } | } | ||||
| public function getPHUIXControlType() { | |||||
| return null; | |||||
| } | |||||
| public function getPHUIXControlSpecification() { | |||||
| return null; | |||||
| } | |||||
| } | } | ||||