Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editfield/PhabricatorEditField.php
Show First 20 Lines • Show All 395 Lines • ▼ Show 20 Lines | abstract class PhabricatorEditField extends Phobject { | ||||
} | } | ||||
protected function getValue() { | protected function getValue() { | ||||
return $this->value; | return $this->value; | ||||
} | } | ||||
public function setValue($value) { | public function setValue($value) { | ||||
$this->hasValue = true; | $this->hasValue = true; | ||||
$this->initialValue = $value; | |||||
$this->value = $value; | $this->value = $value; | ||||
// If we don't have an initial value set yet, use the value as the | |||||
// initial value. | |||||
$initial_value = $this->getInitialValue(); | |||||
if ($initial_value === null) { | |||||
$this->initialValue = $value; | |||||
} | |||||
return $this; | return $this; | ||||
} | } | ||||
public function setMetadataValue($key, $value) { | public function setMetadataValue($key, $value) { | ||||
$this->metadata[$key] = $value; | $this->metadata[$key] = $value; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 393 Lines • Show Last 20 Lines |