Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/editor/AlmanacNetworkEditor.php
| <?php | <?php | ||||
| final class AlmanacNetworkEditor | final class AlmanacNetworkEditor | ||||
| extends PhabricatorApplicationTransactionEditor { | extends AlmanacEditor { | ||||
| public function getEditorApplicationClass() { | |||||
| return 'PhabricatorAlmanacApplication'; | |||||
| } | |||||
| public function getEditorObjectsDescription() { | public function getEditorObjectsDescription() { | ||||
| return pht('Almanac Network'); | return pht('Almanac Network'); | ||||
| } | } | ||||
| protected function supportsSearch() { | |||||
| return true; | |||||
| } | |||||
| public function getCreateObjectTitle($author, $object) { | public function getCreateObjectTitle($author, $object) { | ||||
| return pht('%s created this network.', $author); | return pht('%s created this network.', $author); | ||||
| } | } | ||||
| public function getCreateObjectTitleForFeed($author, $object) { | public function getCreateObjectTitleForFeed($author, $object) { | ||||
| return pht('%s created %s.', $author, $object); | return pht('%s created %s.', $author, $object); | ||||
| } | } | ||||
| protected function supportsSearch() { | |||||
| return true; | |||||
| } | |||||
| public function getTransactionTypes() { | public function getTransactionTypes() { | ||||
| $types = parent::getTransactionTypes(); | $types = parent::getTransactionTypes(); | ||||
| $types[] = PhabricatorTransactions::TYPE_VIEW_POLICY; | $types[] = PhabricatorTransactions::TYPE_VIEW_POLICY; | ||||
| $types[] = PhabricatorTransactions::TYPE_EDIT_POLICY; | $types[] = PhabricatorTransactions::TYPE_EDIT_POLICY; | ||||
| return $types; | return $types; | ||||
| } | } | ||||
| } | } | ||||