Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/editor/AlmanacServiceEditor.php
<?php | <?php | ||||
final class AlmanacServiceEditor | final class AlmanacServiceEditor | ||||
extends PhabricatorApplicationTransactionEditor { | extends AlmanacEditor { | ||||
public function getEditorApplicationClass() { | |||||
return 'PhabricatorAlmanacApplication'; | |||||
} | |||||
public function getEditorObjectsDescription() { | public function getEditorObjectsDescription() { | ||||
return pht('Almanac Service'); | return pht('Almanac Service'); | ||||
} | } | ||||
protected function supportsSearch() { | |||||
return true; | |||||
} | |||||
public function getTransactionTypes() { | public function getTransactionTypes() { | ||||
$types = parent::getTransactionTypes(); | $types = parent::getTransactionTypes(); | ||||
$types[] = AlmanacServiceTransaction::TYPE_NAME; | $types[] = AlmanacServiceTransaction::TYPE_NAME; | ||||
$types[] = AlmanacServiceTransaction::TYPE_LOCK; | $types[] = AlmanacServiceTransaction::TYPE_LOCK; | ||||
$types[] = PhabricatorTransactions::TYPE_VIEW_POLICY; | $types[] = PhabricatorTransactions::TYPE_VIEW_POLICY; | ||||
$types[] = PhabricatorTransactions::TYPE_EDIT_POLICY; | $types[] = PhabricatorTransactions::TYPE_EDIT_POLICY; | ||||
▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
} | } | ||||
break; | break; | ||||
} | } | ||||
return $errors; | return $errors; | ||||
} | } | ||||
} | } |