Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/storage/HeraldRule.php
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | final class HeraldRule extends HeraldDAO | ||||
public function getMonogram() { | public function getMonogram() { | ||||
return 'H'.$this->getID(); | return 'H'.$this->getID(); | ||||
} | } | ||||
public function getURI() { | public function getURI() { | ||||
return '/'.$this->getMonogram(); | return '/'.$this->getMonogram(); | ||||
} | } | ||||
public function getEditorSortVector() { | |||||
return id(new PhutilSortVector()) | |||||
->addInt($this->getIsDisabled() ? 1 : 0) | |||||
->addString($this->getName()); | |||||
} | |||||
public function getEditorDisplayName() { | |||||
$name = pht('%s %s', $this->getMonogram(), $this->getName()); | |||||
if ($this->getIsDisabled()) { | |||||
$name = pht('%s (Disabled)', $name); | |||||
} | |||||
return $name; | |||||
} | |||||
/* -( Repetition Policies )------------------------------------------------ */ | /* -( Repetition Policies )------------------------------------------------ */ | ||||
public function getRepetitionPolicyStringConstant() { | public function getRepetitionPolicyStringConstant() { | ||||
return $this->getRepetitionPolicy(); | return $this->getRepetitionPolicy(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |