本文整理汇总了PHP中ApiBase::getPossibleErrors方法的典型用法代码示例。如果您正苦于以下问题:PHP ApiBase::getPossibleErrors方法的具体用法?PHP ApiBase::getPossibleErrors怎么用?PHP ApiBase::getPossibleErrors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApiBase
的用法示例。
在下文中一共展示了ApiBase::getPossibleErrors方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'badgenerator', 'info' => 'Module $generatorName cannot be used as a generator')));
}
示例2: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('invalidtitle', 'title'), array('notanarticle'), array('invaliduser', 'user')));
}
示例3: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('missingparam', 'locations')));
}
示例4: getPossibleErrors
/**
* Errors!
*
* @return array
*/
public function getPossibleErrors() {
return array_merge( parent::getPossibleErrors(), array(
array( 'code' => 'invalidchannel',
'info' => 'Invalid channel given' ),
array( 'code' => 'permissiondenied',
'info' => 'Insufficient rights for the actions requested' ),
) );
}
示例5: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('from', 'fromid')), array(array('invalidtitle', 'from'), array('nosuchpageid', 'fromid'), array('notanarticle'), array('invalidtitle', 'to'), array('sharedfile-exists')));
}
示例6: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('usermaildisabled'), array('missingparam', 'target'), array('missingparam', 'text')));
}
示例7: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'feed-invalid', 'info' => 'Invalid subscription feed type'), array('code' => 'language-invalid', 'info' => 'Invalid language code')));
}
示例8: getPossibleErrors
public function getPossibleErrors()
{
$right = self::$right;
return array_merge(parent::getPossibleErrors(), array(array('code' => 'permissiondenied', 'info' => "You must have {$right} right"), array('code' => 'disabled', 'info' => "Message group workflows are not in use"), array('code' => 'sameworkflowstate', 'info' => "The requested state is identical to the current state")));
}
示例9: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('title', 'pageid')), array(array('invalidtitle', 'title'), array('nosuchpageid', 'pageid'), array('notanarticle'), array('hookaborted', 'error'), array('delete-toobig', 'limit'), array('cannotdelete', 'title'), array('invalidoldimage'), array('nodeleteablefile')));
}
示例10: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('permdenied-undelete'), array('blockedtext'), array('invalidtitle', 'title'), array('cannotundelete')));
}
示例11: getPossibleErrors
/**
* @return array
*/
public function getPossibleErrors()
{
$errors = parent::getPossibleErrors();
$errors = array_merge($errors, array(array('invalidtitle', 'title'), array('invalidtitle', 'key')));
return $errors;
}
示例12: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('filekey', 'file', 'url', 'statuskey')), array(array('uploaddisabled'), array('invalid-file-key'), array('uploaddisabled'), array('mustbeloggedin', 'upload'), array('badaccess-groups'), array('code' => 'fetchfileerror', 'info' => ''), array('code' => 'nomodule', 'info' => 'No upload module set'), array('code' => 'empty-file', 'info' => 'The file you submitted was empty'), array('code' => 'filetype-missing', 'info' => 'The file is missing an extension'), array('code' => 'filename-tooshort', 'info' => 'The filename is too short'), array('code' => 'overwrite', 'info' => 'Overwriting an existing file is not allowed'), array('code' => 'stashfailed', 'info' => 'Stashing temporary file failed'), array('code' => 'internal-error', 'info' => 'An internal error occurred'), array('code' => 'asynccopyuploaddisabled', 'info' => 'Asynchronous copy uploads disabled')));
}
示例13: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), $this->getRequireOnlyOneParameterErrorMessages(array('vars', 'rcid', 'logid')), array(array('permissiondenied'), array('nosuchrcid'), array('code' => 'nosuchlogid', 'info' => 'There is no abuselog entry with the id given'), array('code' => 'badsyntax', 'info' => 'The filter has invalid syntax')));
}
示例14: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('code' => 'notloggedin', 'info' => 'You must be logged-in to have a watchlist'), array('invalidtitle', 'title'), array('hookaborted')));
}
示例15: getPossibleErrors
public function getPossibleErrors()
{
return array_merge(parent::getPossibleErrors(), array(array('cantimport'), array('missingparam', 'interwikipage'), array('cantimport-upload'), array('import-unknownerror', 'source'), array('import-unknownerror', 'result'), array('import-rootpage-nosubpage', 'namespace'), array('import-rootpage-invalid')));
}