public function getAllowedParams() { $ret = parent::getAllowedParams() + array('formatversion' => array(ApiBase::PARAM_TYPE => array(1, 2, 'latest'), ApiBase::PARAM_DFLT => 1, ApiBase::PARAM_HELP_MSG => 'apihelp-php-param-formatversion')); return $ret; }
public function getAllowedParams() { if ($this->isRaw) { return parent::getAllowedParams(); } $ret = parent::getAllowedParams() + array('callback' => array(ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-callback'), 'utf8' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-utf8'), 'ascii' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-ascii'), 'formatversion' => array(ApiBase::PARAM_TYPE => array(1, 2, 'latest'), ApiBase::PARAM_DFLT => 1, ApiBase::PARAM_HELP_MSG => 'apihelp-json-param-formatversion')); return $ret; }
public function getAllowedParams() { return parent::getAllowedParams() + ['xslt' => [ApiBase::PARAM_HELP_MSG => 'apihelp-xml-param-xslt'], 'includexmlnamespace' => [ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-xml-param-includexmlnamespace']]; }
public function getAllowedParams() { $ret = parent::getAllowedParams() + ['formatversion' => [ApiBase::PARAM_TYPE => [1, 2, 'latest'], ApiBase::PARAM_DFLT => 1, ApiBase::PARAM_HELP_MSG => 'apihelp-php-param-formatversion']]; return $ret; }