Ejemplo n.º 1
0
 public function getAllowedParams()
 {
     return array('title' => array(ApiBase::PARAM_TYPE => 'string'), 'pageid' => array(ApiBase::PARAM_TYPE => 'integer'), 'section' => null, 'sectiontitle' => array(ApiBase::PARAM_TYPE => 'string'), 'text' => array(ApiBase::PARAM_TYPE => 'text'), 'summary' => null, 'tags' => array(ApiBase::PARAM_TYPE => ChangeTags::listExplicitlyDefinedTags(), ApiBase::PARAM_ISMULTI => true), 'minor' => false, 'notminor' => false, 'bot' => false, 'basetimestamp' => array(ApiBase::PARAM_TYPE => 'timestamp'), 'starttimestamp' => array(ApiBase::PARAM_TYPE => 'timestamp'), 'recreate' => false, 'createonly' => false, 'nocreate' => false, 'watch' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true), 'unwatch' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true), 'watchlist' => array(ApiBase::PARAM_DFLT => 'preferences', ApiBase::PARAM_TYPE => array('watch', 'unwatch', 'preferences', 'nochange')), 'md5' => null, 'prependtext' => array(ApiBase::PARAM_TYPE => 'text'), 'appendtext' => array(ApiBase::PARAM_TYPE => 'text'), 'undo' => array(ApiBase::PARAM_TYPE => 'integer'), 'undoafter' => array(ApiBase::PARAM_TYPE => 'integer'), 'redirect' => array(ApiBase::PARAM_TYPE => 'boolean', ApiBase::PARAM_DFLT => false), 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats()), 'contentmodel' => array(ApiBase::PARAM_TYPE => ContentHandler::getContentModels()), 'token' => array(ApiBase::PARAM_HELP_MSG_APPEND => array('apihelp-edit-param-token')));
 }
Ejemplo n.º 2
0
 public function getAllowedParams()
 {
     return array('title' => array(ApiBase::PARAM_DFLT => 'API'), 'text' => null, 'summary' => null, 'page' => null, 'pageid' => array(ApiBase::PARAM_TYPE => 'integer'), 'redirects' => false, 'oldid' => array(ApiBase::PARAM_TYPE => 'integer'), 'prop' => array(ApiBase::PARAM_DFLT => 'text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties', ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array('text', 'langlinks', 'languageshtml', 'categories', 'categorieshtml', 'links', 'templates', 'images', 'externallinks', 'sections', 'revid', 'displaytitle', 'headitems', 'headhtml', 'iwlinks', 'wikitext', 'properties')), 'pst' => false, 'onlypst' => false, 'uselang' => null, 'section' => null, 'disablepp' => false, 'generatexml' => false, 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats()), 'contentmodel' => array(ApiBase::PARAM_TYPE => ContentHandler::getContentModels()));
 }
 public function getAllowedParams()
 {
     return array('prop' => array(ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'ids|timestamp|flags|comment|user', ApiBase::PARAM_TYPE => array('ids', 'flags', 'timestamp', 'user', 'userid', 'size', 'sha1', 'contentmodel', 'comment', 'parsedcomment', 'content', 'tags'), ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-prop'), 'limit' => array(ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-limit'), 'expandtemplates' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-expandtemplates'), 'generatexml' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-generatexml'), 'parse' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-parse'), 'section' => array(ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-section'), 'diffto' => array(ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-diffto'), 'difftotext' => array(ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-difftotext'), 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-contentformat'));
 }
Ejemplo n.º 4
0
 public function getAllowedParams()
 {
     return array('title' => null, 'text' => array(ApiBase::PARAM_TYPE => 'text'), 'summary' => null, 'page' => null, 'pageid' => array(ApiBase::PARAM_TYPE => 'integer'), 'redirects' => false, 'oldid' => array(ApiBase::PARAM_TYPE => 'integer'), 'prop' => array(ApiBase::PARAM_DFLT => 'text|langlinks|categories|links|templates|' . 'images|externallinks|sections|revid|displaytitle|iwlinks|properties', ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array('text', 'langlinks', 'categories', 'categorieshtml', 'links', 'templates', 'images', 'externallinks', 'sections', 'revid', 'displaytitle', 'headitems', 'headhtml', 'modules', 'jsconfigvars', 'encodedjsconfigvars', 'indicators', 'iwlinks', 'wikitext', 'properties', 'limitreportdata', 'limitreporthtml', 'parsetree'), ApiBase::PARAM_HELP_MSG_PER_VALUE => array('parsetree' => array('apihelp-parse-paramvalue-prop-parsetree', CONTENT_MODEL_WIKITEXT))), 'pst' => false, 'onlypst' => false, 'effectivelanglinks' => false, 'section' => null, 'sectiontitle' => array(ApiBase::PARAM_TYPE => 'string'), 'disablepp' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true), 'disablelimitreport' => false, 'disableeditsection' => false, 'disabletidy' => false, 'generatexml' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => array('apihelp-parse-param-generatexml', CONTENT_MODEL_WIKITEXT), ApiBase::PARAM_DEPRECATED => true), 'preview' => false, 'sectionpreview' => false, 'disabletoc' => false, 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats()), 'contentmodel' => array(ApiBase::PARAM_TYPE => ContentHandler::getContentModels()));
 }
Ejemplo n.º 5
0
 public function getAllowedParams()
 {
     return array('prop' => array(ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'ids|timestamp|flags|comment|user', ApiBase::PARAM_TYPE => array('ids', 'flags', 'timestamp', 'user', 'userid', 'size', 'sha1', 'contentmodel', 'comment', 'parsedcomment', 'content', 'tags')), 'limit' => array(ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2), 'startid' => array(ApiBase::PARAM_TYPE => 'integer'), 'endid' => array(ApiBase::PARAM_TYPE => 'integer'), 'start' => array(ApiBase::PARAM_TYPE => 'timestamp'), 'end' => array(ApiBase::PARAM_TYPE => 'timestamp'), 'dir' => array(ApiBase::PARAM_DFLT => 'older', ApiBase::PARAM_TYPE => array('newer', 'older')), 'user' => array(ApiBase::PARAM_TYPE => 'user'), 'excludeuser' => array(ApiBase::PARAM_TYPE => 'user'), 'tag' => null, 'expandtemplates' => false, 'generatexml' => false, 'parse' => false, 'section' => null, 'token' => array(ApiBase::PARAM_TYPE => array_keys($this->getTokenFunctions()), ApiBase::PARAM_ISMULTI => true), 'continue' => null, 'diffto' => null, 'difftotext' => null, 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_DFLT => null));
 }
Ejemplo n.º 6
0
 public function getAllowedParams()
 {
     return array('title' => array(ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_REQUIRED => true), 'section' => array(ApiBase::PARAM_TYPE => 'string'), 'sectiontitle' => array(ApiBase::PARAM_TYPE => 'string'), 'text' => array(ApiBase::PARAM_TYPE => 'text', ApiBase::PARAM_REQUIRED => true), 'contentmodel' => array(ApiBase::PARAM_TYPE => ContentHandler::getContentModels(), ApiBase::PARAM_REQUIRED => true), 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_REQUIRED => true), 'baserevid' => array(ApiBase::PARAM_TYPE => 'integer', ApiBase::PARAM_REQUIRED => true));
 }
Ejemplo n.º 7
0
 public function getAllowedParams()
 {
     return array('title' => array(ApiBase::PARAM_TYPE => 'string'), 'pageid' => array(ApiBase::PARAM_TYPE => 'integer'), 'section' => null, 'sectiontitle' => array(ApiBase::PARAM_TYPE => 'string'), 'text' => null, 'token' => array(ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_REQUIRED => true), 'summary' => null, 'minor' => false, 'notminor' => false, 'bot' => false, 'basetimestamp' => null, 'starttimestamp' => null, 'recreate' => false, 'createonly' => false, 'nocreate' => false, 'watch' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true), 'unwatch' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true), 'watchlist' => array(ApiBase::PARAM_DFLT => 'preferences', ApiBase::PARAM_TYPE => array('watch', 'unwatch', 'preferences', 'nochange')), 'md5' => null, 'prependtext' => null, 'appendtext' => null, 'undo' => array(ApiBase::PARAM_TYPE => 'integer'), 'undoafter' => array(ApiBase::PARAM_TYPE => 'integer'), 'redirect' => array(ApiBase::PARAM_TYPE => 'boolean', ApiBase::PARAM_DFLT => false), 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats()), 'contentmodel' => array(ApiBase::PARAM_TYPE => ContentHandler::getContentModels()));
 }
Ejemplo n.º 8
0
 public function getAllowedParams()
 {
     return ['prop' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'ids|timestamp|flags|comment|user', ApiBase::PARAM_TYPE => ['ids', 'flags', 'timestamp', 'user', 'userid', 'size', 'sha1', 'contentmodel', 'comment', 'parsedcomment', 'content', 'tags', 'parsetree'], ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-prop', ApiBase::PARAM_HELP_MSG_PER_VALUE => ['ids' => 'apihelp-query+revisions+base-paramvalue-prop-ids', 'flags' => 'apihelp-query+revisions+base-paramvalue-prop-flags', 'timestamp' => 'apihelp-query+revisions+base-paramvalue-prop-timestamp', 'user' => 'apihelp-query+revisions+base-paramvalue-prop-user', 'userid' => 'apihelp-query+revisions+base-paramvalue-prop-userid', 'size' => 'apihelp-query+revisions+base-paramvalue-prop-size', 'sha1' => 'apihelp-query+revisions+base-paramvalue-prop-sha1', 'contentmodel' => 'apihelp-query+revisions+base-paramvalue-prop-contentmodel', 'comment' => 'apihelp-query+revisions+base-paramvalue-prop-comment', 'parsedcomment' => 'apihelp-query+revisions+base-paramvalue-prop-parsedcomment', 'content' => 'apihelp-query+revisions+base-paramvalue-prop-content', 'tags' => 'apihelp-query+revisions+base-paramvalue-prop-tags', 'parsetree' => ['apihelp-query+revisions+base-paramvalue-prop-parsetree', CONTENT_MODEL_WIKITEXT]]], 'limit' => [ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-limit'], 'expandtemplates' => [ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-expandtemplates'], 'generatexml' => [ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-generatexml'], 'parse' => [ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-parse'], 'section' => [ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-section'], 'diffto' => [ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-diffto'], 'difftotext' => [ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-difftotext'], 'difftotextpst' => [ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-difftotextpst'], 'contentformat' => [ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-contentformat']];
 }
Ejemplo n.º 9
0
 public function getAllowedParams()
 {
     return ['title' => [ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_REQUIRED => true], 'section' => [ApiBase::PARAM_TYPE => 'string'], 'sectiontitle' => [ApiBase::PARAM_TYPE => 'string'], 'text' => [ApiBase::PARAM_TYPE => 'text', ApiBase::PARAM_DFLT => null], 'stashedtexthash' => [ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_DFLT => null], 'summary' => [ApiBase::PARAM_TYPE => 'string'], 'contentmodel' => [ApiBase::PARAM_TYPE => ContentHandler::getContentModels(), ApiBase::PARAM_REQUIRED => true], 'contentformat' => [ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_REQUIRED => true], 'baserevid' => [ApiBase::PARAM_TYPE => 'integer', ApiBase::PARAM_REQUIRED => true]];
 }