本文整理汇总了PHP中ApiQueryBase::getPossibleErrors方法的典型用法代码示例。如果您正苦于以下问题:PHP ApiQueryBase::getPossibleErrors方法的具体用法?PHP ApiQueryBase::getPossibleErrors怎么用?PHP ApiQueryBase::getPossibleErrors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApiQueryBase
的用法示例。
在下文中一共展示了ApiQueryBase::getPossibleErrors方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'anontoken'), array('code' => 'invalidtoken', 'info' => 'The anontoken is not 32 characters')));
}
示例2: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'includeAllDenied', 'info' => 'Cannot view all servers info unless $wgShowHostnames is true')));
}
示例3: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted file information'), array('code' => 'hashsearchdisabled', 'info' => 'Search by hash disabled in Miser Mode'), array('code' => 'invalidsha1hash', 'info' => 'The SHA1 hash provided is not valid'), array('code' => 'invalidsha1base36hash', 'info' => 'The SHA1Base36 hash provided is not valid')));
}
示例4: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'param_user', 'info' => 'User name $user not found'), array('code' => 'param_title', 'info' => 'Bad title value \'title\''), array('code' => 'param_prefix', 'info' => 'Bad title value \'prefix\''), array('code' => 'prefixsearchdisabled', 'info' => 'Prefix search disabled in Miser Mode')));
}
示例5: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('users', 'ip')), array(array('code' => 'cidrtoobroad', 'info' => 'CIDR ranges broader than /16 are not accepted'), array('code' => 'param_user', 'info' => 'User parameter may not be empty'), array('code' => 'param_user', 'info' => 'User name user is not valid'), array('show')));
}
示例6: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'multisource', 'info' => "Cannot use 'pageids' at the same time as 'dataSource'"), array('code' => 'multisource', 'info' => "Cannot use 'revids' at the same time as 'dataSource'")));
}
示例7: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('invalidtitle', 'title'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view the abuse log'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view IP addresses'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view detailed abuse log entries')));
}
示例8: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted file information')));
}
示例9: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted revision information'), array('code' => 'badparams', 'info' => 'user and excludeuser cannot be used together'), array('code' => 'permissiondenied', 'info' => 'You don\'t have permission to view deleted revision content'), array('code' => 'badparams', 'info' => "The 'from' parameter cannot be used in modes 1 or 2"), array('code' => 'badparams', 'info' => "The 'to' parameter cannot be used in modes 1 or 2"), array('code' => 'badparams', 'info' => "The 'prefix' parameter cannot be used in modes 1 or 2"), array('code' => 'badparams', 'info' => "The 'start' parameter cannot be used in mode 3"), array('code' => 'badparams', 'info' => "The 'end' parameter cannot be used in mode 3")));
}
示例10: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), $this->getRequireMaxOneParameterErrorMessages(array('url', 'prop')), array(array('missingparam', 'lang')));
}
示例11: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('nosuchuser'), array('invalidip'), array('permissionerror'), array('invalidmode'), array('missingdata')));
}
示例12: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), $this->getRequireMaxOneParameterErrorMessages(array('group', 'excludegroup', 'rights', 'excluderights')));
}
示例13: getPossibleErrors
/**
* (non-PHPdoc)
* @see includes/api/ApiBase#getPossibleErrors()
*/
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('badaccess-groups'), array('missingparam', 'state')));
}
示例14: getPossibleErrors
public function getPossibleErrors() {
$p = $this->getModulePrefix();
return array_merge( parent::getPossibleErrors(), array(
array( 'code' => "{$p}urlwidth", 'info' => "{$p}urlheight cannot be used without {$p}urlwidth" ),
array( 'code' => 'urlparam', 'info' => "Invalid value for {$p}urlparam" ),
array( 'code' => 'urlparam_no_width', 'info' => "{$p}urlparam requires {$p}urlwidth" ),
) );
}
示例15: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'param_user', 'info' => 'User parameter may not be empty.'), array('code' => 'param_user', 'info' => 'User name user is not valid'), array('show'), array('code' => 'permissiondenied', 'info' => 'You need the patrol right to request the patrolled flag')));
}