Differential D17158 Diff 41267 src/applications/transactions/editengine/PhabricatorEditEngineAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editengine/PhabricatorEditEngineAPIMethod.php
<?php | <?php | ||||
abstract class PhabricatorEditEngineAPIMethod | abstract class PhabricatorEditEngineAPIMethod | ||||
extends ConduitAPIMethod { | extends ConduitAPIMethod { | ||||
abstract public function newEditEngine(); | abstract public function newEditEngine(); | ||||
public function getApplication() { | public function getApplication() { | ||||
$engine = $this->newEditEngine(); | $engine = $this->newEditEngine(); | ||||
$class = $engine->getEngineApplicationClass(); | $class = $engine->getEngineApplicationClass(); | ||||
return PhabricatorApplication::getByClass($class); | return PhabricatorApplication::getByClass($class); | ||||
} | } | ||||
public function getMethodStatus() { | |||||
return self::METHOD_STATUS_UNSTABLE; | |||||
} | |||||
public function getMethodStatusDescription() { | |||||
return pht( | |||||
'ApplicationEditor methods are fairly stable, but were introduced '. | |||||
'relatively recently and may continue to evolve as more applications '. | |||||
'adopt them.'); | |||||
} | |||||
final protected function defineParamTypes() { | final protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'transactions' => 'list<map<string, wild>>', | 'transactions' => 'list<map<string, wild>>', | ||||
'objectIdentifier' => 'optional id|phid|string', | 'objectIdentifier' => 'optional id|phid|string', | ||||
); | ); | ||||
} | } | ||||
final protected function defineReturnType() { | final protected function defineReturnType() { | ||||
▲ Show 20 Lines • Show All 139 Lines • Show Last 20 Lines |