X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryFilearchive.php;h=f047d8d41464b80fae41b6a6ec830b63e68f1e3d;hb=3d1972cc07b23a4750a50780d8912d24baa44cd5;hp=a94b4fac6d030414b465d3b54b429312653bccfd;hpb=a83900b360d9bf08ae90a616bbfdcfdb35f61ef5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index a94b4fac6d..f047d8d414 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -315,89 +315,10 @@ class ApiQueryFilearchive extends ApiQueryBase { ); } - public function getResultProperties() { - return array( - '' => array( - 'name' => 'string', - 'ns' => 'namespace', - 'title' => 'string', - 'filehidden' => 'boolean', - 'commenthidden' => 'boolean', - 'userhidden' => 'boolean', - 'suppressed' => 'boolean' - ), - 'sha1' => array( - 'sha1' => 'string' - ), - 'timestamp' => array( - 'timestamp' => 'timestamp' - ), - 'user' => array( - 'userid' => 'integer', - 'user' => 'string' - ), - 'size' => array( - 'size' => 'integer', - 'pagecount' => array( - ApiBase::PROP_TYPE => 'integer', - ApiBase::PROP_NULLABLE => true - ), - 'height' => 'integer', - 'width' => 'integer' - ), - 'dimensions' => array( - 'size' => 'integer', - 'pagecount' => array( - ApiBase::PROP_TYPE => 'integer', - ApiBase::PROP_NULLABLE => true - ), - 'height' => 'integer', - 'width' => 'integer' - ), - 'description' => array( - 'description' => 'string' - ), - 'parseddescription' => array( - 'description' => 'string', - 'parseddescription' => 'string' - ), - 'metadata' => array( - 'metadata' => 'string' - ), - 'bitdepth' => array( - 'bitdepth' => 'integer' - ), - 'mime' => array( - 'mime' => 'string' - ), - 'mediatype' => array( - 'mediatype' => 'string' - ), - 'archivename' => array( - 'archivename' => 'string' - ), - ); - } - public function getDescription() { return 'Enumerate all deleted files sequentially.'; } - 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 SHA-1 hash provided is not valid' ), - array( - 'code' => 'invalidsha1base36hash', - 'info' => 'The SHA1Base36 hash provided is not valid' - ), - ) ); - } - public function getExamples() { return array( 'api.php?action=query&list=filearchive' => array(