/** * Get final list of parameter definitions, after hooks have had a chance to * tweak it as needed. * * @return array */ public function getFinalParameters() { $params = $this->getParameters(); apiRunHooks('APIGetAllowedParamseters', array(&$this, &$params)); return $params; }
/** * Execute the actual module, without any error handling */ protected function executeAction() { $params = $this->setupExecuteAction(); $module = $this->setupModule(); $this->checkExecutePermissions($module); if (!$this->checkMaxLag($module, $params)) { return; } if (!$this->mInternalMode) { $this->setupExternalResponse($module, $params); } // Execute $module->profileIn(); $module->execute(); apiRunHooks('APIAfterExecute', array(&$module)); $module->profileOut(); if (!$this->mInternalMode) { // Print result data $this->printResult(false); } }
/** * Get final description, after hooks have had a chance to tweak it as * needed. * @return array */ public function getFinalParamDescription() { $desc = $this->getParamDescription(); apiRunHooks('APIGetParamDescription', array(&$this, &$desc)); return $desc; }