Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/method/ConduitAPIMethod.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | abstract class ConduitAPIMethod | ||||
abstract protected function defineReturnType(); | abstract protected function defineReturnType(); | ||||
protected function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array(); | return array(); | ||||
} | } | ||||
abstract protected function execute(ConduitAPIRequest $request); | abstract protected function execute(ConduitAPIRequest $request); | ||||
public function isInternalAPI() { | |||||
return false; | |||||
} | |||||
public function getParamTypes() { | public function getParamTypes() { | ||||
$types = $this->defineParamTypes(); | $types = $this->defineParamTypes(); | ||||
$query = $this->newQueryObject(); | $query = $this->newQueryObject(); | ||||
if ($query) { | if ($query) { | ||||
$types['order'] = 'optional order'; | $types['order'] = 'optional order'; | ||||
$types += $this->getPagerParamTypes(); | $types += $this->getPagerParamTypes(); | ||||
▲ Show 20 Lines • Show All 345 Lines • Show Last 20 Lines |