4 More dieUsage calls
Bar some from ApiBase.. These are done..
This commit is contained in:
parent
c1354d51fc
commit
fc46b81e3f
4 changed files with 24 additions and 0 deletions
|
|
@ -148,6 +148,12 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase {
|
|||
public function getDescription() {
|
||||
return 'List all files that are duplicates of the given file(s).';
|
||||
}
|
||||
|
||||
public function getPossibleErrors() {
|
||||
return array_merge( parent::getPossibleErrors(), array(
|
||||
array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
|
||||
) );
|
||||
}
|
||||
|
||||
protected function getExamples() {
|
||||
return array ( 'api.php?action=query&titles=File:Albert_Einstein_Head.jpg&prop=duplicatefiles',
|
||||
|
|
|
|||
|
|
@ -145,6 +145,12 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
|
|||
public function getDescription() {
|
||||
return 'Returns all images contained on the given page(s)';
|
||||
}
|
||||
|
||||
public function getPossibleErrors() {
|
||||
return array_merge( parent::getPossibleErrors(), array(
|
||||
array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
|
||||
) );
|
||||
}
|
||||
|
||||
protected function getExamples() {
|
||||
return array (
|
||||
|
|
|
|||
|
|
@ -596,6 +596,12 @@ class ApiQueryInfo extends ApiQueryBase {
|
|||
public function getDescription() {
|
||||
return 'Get basic page information such as namespace, title, last touched date, ...';
|
||||
}
|
||||
|
||||
public function getPossibleErrors() {
|
||||
return array_merge( parent::getPossibleErrors(), array(
|
||||
array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
|
||||
) );
|
||||
}
|
||||
|
||||
protected function getExamples() {
|
||||
return array (
|
||||
|
|
|
|||
|
|
@ -116,6 +116,12 @@ class ApiQueryLangLinks extends ApiQueryBase {
|
|||
public function getDescription() {
|
||||
return 'Returns all interlanguage links from the given page(s)';
|
||||
}
|
||||
|
||||
public function getPossibleErrors() {
|
||||
return array_merge( parent::getPossibleErrors(), array(
|
||||
array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ),
|
||||
) );
|
||||
}
|
||||
|
||||
protected function getExamples() {
|
||||
return array (
|
||||
|
|
|
|||
Loading…
Reference in a new issue