本文整理汇总了PHP中ApiFormatBase::getAllowedParams方法的典型用法代码示例。如果您正苦于以下问题:PHP ApiFormatBase::getAllowedParams方法的具体用法?PHP ApiFormatBase::getAllowedParams怎么用?PHP ApiFormatBase::getAllowedParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApiFormatBase
的用法示例。
在下文中一共展示了ApiFormatBase::getAllowedParams方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAllowedParams
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: getAllowedParams
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: getAllowedParams
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: getAllowedParams
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;
}