Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editfield/PhabricatorEditField.php
| Show First 20 Lines • Show All 176 Lines • ▼ Show 20 Lines | public function setCommentActionLabel($label) { | ||||
| $this->commentActionLabel = $label; | $this->commentActionLabel = $label; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getCommentActionLabel() { | public function getCommentActionLabel() { | ||||
| return $this->commentActionLabel; | 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 123 Lines • ▼ Show 20 Lines | foreach ($check as $key) { | ||||
| } | } | ||||
| $this->value = $this->getValueFromRequest($request, $key); | $this->value = $this->getValueFromRequest($request, $key); | ||||
| break; | break; | ||||
| } | } | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function readValueFromComment($action) { | |||||
| $this->value = $this->getValueFromComment(idx($action, 'value')); | |||||
| return $this; | |||||
| } | |||||
| protected function getValueFromComment($value) { | |||||
| return $value; | |||||
| } | |||||
| public function getAllReadValueFromRequestKeys() { | public function getAllReadValueFromRequestKeys() { | ||||
| $keys = array(); | $keys = array(); | ||||
| $keys[] = $this->getKey(); | $keys[] = $this->getKey(); | ||||
| foreach ($this->getAliases() as $alias) { | foreach ($this->getAliases() as $alias) { | ||||
| $keys[] = $alias; | $keys[] = $alias; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines | |||||