コード例 #1
0
ファイル: ApiFormatPhp.php プロジェクト: OrBin/mediawiki
 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;
 }
コード例 #2
0
ファイル: ApiFormatJson.php プロジェクト: OrBin/mediawiki
 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;
 }
コード例 #3
0
ファイル: ApiFormatXml.php プロジェクト: claudinec/galan-wiki
 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']];
 }
コード例 #4
0
ファイル: ApiFormatPhp.php プロジェクト: claudinec/galan-wiki
 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;
 }