Differential D17133 Diff 41202 src/applications/differential/xaction/DifferentialRevisionActionTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionActionTransaction.php
| Show All 13 Lines | public function isActionAvailable($object, PhabricatorUser $viewer) { | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| abstract protected function validateAction($object, PhabricatorUser $viewer); | abstract protected function validateAction($object, PhabricatorUser $viewer); | ||||
| abstract protected function getRevisionActionLabel(); | abstract protected function getRevisionActionLabel(); | ||||
| public function getCommandKeyword() { | |||||
| return null; | |||||
| } | |||||
| public function getCommandAliases() { | |||||
| return array(); | |||||
| } | |||||
| public function getCommandSummary() { | |||||
| return null; | |||||
| } | |||||
| protected function getRevisionActionOrder() { | protected function getRevisionActionOrder() { | ||||
| return 1000; | return 1000; | ||||
| } | } | ||||
| public function getRevisionActionOrderVector() { | public function getRevisionActionOrderVector() { | ||||
| return id(new PhutilSortVector()) | return id(new PhutilSortVector()) | ||||
| ->addInt($this->getRevisionActionOrder()); | ->addInt($this->getRevisionActionOrder()); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines | |||||