Differential D13200 Diff 31965 src/applications/releeph/field/specification/ReleephSummaryFieldSpecification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/field/specification/ReleephSummaryFieldSpecification.php
| <?php | <?php | ||||
| final class ReleephSummaryFieldSpecification | final class ReleephSummaryFieldSpecification | ||||
| extends ReleephFieldSpecification { | extends ReleephFieldSpecification { | ||||
| const MAX_SUMMARY_LENGTH = 60; | const MAX_SUMMARY_LENGTH = 60; | ||||
| public function shouldAppearInPropertyView() { | public function shouldAppearInPropertyView() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| public function getFieldKey() { | public function getFieldKey() { | ||||
| return 'summary'; | return 'summary'; | ||||
| } | } | ||||
| public function getName() { | public function getName() { | ||||
| return 'Summary'; | return pht('Summary'); | ||||
| } | } | ||||
| public function getStorageKey() { | public function getStorageKey() { | ||||
| return 'summary'; | return 'summary'; | ||||
| } | } | ||||
| private $error = false; | private $error = false; | ||||
| public function renderEditControl(array $handles) { | public function renderEditControl(array $handles) { | ||||
| return id(new AphrontFormTextControl()) | return id(new AphrontFormTextControl()) | ||||
| ->setLabel('Summary') | ->setLabel(pht('Summary')) | ||||
| ->setName('summary') | ->setName('summary') | ||||
| ->setError($this->error) | ->setError($this->error) | ||||
| ->setValue($this->getValue()) | ->setValue($this->getValue()) | ||||
| ->setCaption(pht('Leave this blank to use the original commit title')); | ->setCaption(pht('Leave this blank to use the original commit title')); | ||||
| } | } | ||||
| public function renderHelpForArcanist() { | public function renderHelpForArcanist() { | ||||
| $text = pht( | $text = pht( | ||||
| Show All 17 Lines | |||||