Differential D8286 Diff 19727 src/applications/releeph/field/specification/ReleephLevelFieldSpecification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/field/specification/ReleephLevelFieldSpecification.php
Show All 21 Lines | abstract class ReleephLevelFieldSpecification | ||||
public function getStorageKey() { | public function getStorageKey() { | ||||
throw new PhabricatorCustomFieldImplementationIncompleteException($this); | throw new PhabricatorCustomFieldImplementationIncompleteException($this); | ||||
} | } | ||||
public function renderValueForHeaderView() { | public function renderValueForHeaderView() { | ||||
return $this->getNameForLevel($this->getValue()); | return $this->getNameForLevel($this->getValue()); | ||||
} | } | ||||
public function renderEditControl() { | public function renderEditControl(array $handles) { | ||||
$control_name = $this->getRequiredStorageKey(); | $control_name = $this->getRequiredStorageKey(); | ||||
$all_levels = $this->getLevels(); | $all_levels = $this->getLevels(); | ||||
$level = $this->getValue(); | $level = $this->getValue(); | ||||
if (!$level) { | if (!$level) { | ||||
$level = $this->getDefaultLevel(); | $level = $this->getDefaultLevel(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |