Ejemplo n.º 1
0
 public function getAllowedParams()
 {
     return ['start' => [ApiBase::PARAM_TYPE => 'timestamp'], 'end' => [ApiBase::PARAM_TYPE => 'timestamp'], 'dir' => [ApiBase::PARAM_DFLT => 'older', ApiBase::PARAM_TYPE => ['newer', 'older'], ApiBase::PARAM_HELP_MSG => 'api-help-param-direction'], 'namespace' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => 'namespace'], 'user' => [ApiBase::PARAM_TYPE => 'user'], 'excludeuser' => [ApiBase::PARAM_TYPE => 'user'], 'tag' => null, 'prop' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'title|timestamp|ids', ApiBase::PARAM_TYPE => ['user', 'userid', 'comment', 'parsedcomment', 'flags', 'timestamp', 'title', 'ids', 'sizes', 'redirect', 'patrolled', 'loginfo', 'tags', 'sha1'], ApiBase::PARAM_HELP_MSG_PER_VALUE => []], 'token' => [ApiBase::PARAM_DEPRECATED => true, ApiBase::PARAM_TYPE => array_keys($this->getTokenFunctions()), ApiBase::PARAM_ISMULTI => true], 'show' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => ['minor', '!minor', 'bot', '!bot', 'anon', '!anon', 'redirect', '!redirect', 'patrolled', '!patrolled', 'unpatrolled']], 'limit' => [ApiBase::PARAM_DFLT => 10, ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2], 'type' => [ApiBase::PARAM_DFLT => 'edit|new|log|categorize', ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => RecentChange::getChangeTypes()], 'toponly' => false, 'continue' => [ApiBase::PARAM_HELP_MSG => 'api-help-param-continue'], 'generaterevisions' => false];
 }
Ejemplo n.º 2
0
 public function getAllowedParams()
 {
     return ['allrev' => false, 'start' => [ApiBase::PARAM_TYPE => 'timestamp'], 'end' => [ApiBase::PARAM_TYPE => 'timestamp'], 'namespace' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => 'namespace'], 'user' => [ApiBase::PARAM_TYPE => 'user'], 'excludeuser' => [ApiBase::PARAM_TYPE => 'user'], 'dir' => [ApiBase::PARAM_DFLT => 'older', ApiBase::PARAM_TYPE => ['newer', 'older'], ApiHelp::PARAM_HELP_MSG => 'api-help-param-direction'], 'limit' => [ApiBase::PARAM_DFLT => 10, ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2], 'prop' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'ids|title|flags', ApiBase::PARAM_HELP_MSG_PER_VALUE => [], ApiBase::PARAM_TYPE => ['ids', 'title', 'flags', 'user', 'userid', 'comment', 'parsedcomment', 'timestamp', 'patrol', 'sizes', 'notificationtimestamp', 'loginfo']], 'show' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => ['minor', '!minor', 'bot', '!bot', 'anon', '!anon', 'patrolled', '!patrolled', 'unread', '!unread']], 'type' => [ApiBase::PARAM_DFLT => 'edit|new|log|categorize', ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_HELP_MSG_PER_VALUE => [], ApiBase::PARAM_TYPE => RecentChange::getChangeTypes()], 'owner' => [ApiBase::PARAM_TYPE => 'user'], 'token' => [ApiBase::PARAM_TYPE => 'string'], 'continue' => [ApiBase::PARAM_HELP_MSG => 'api-help-param-continue']];
 }
Ejemplo n.º 3
0
 public function getAllowedParams()
 {
     return ['allrev' => false, 'start' => [ApiBase::PARAM_TYPE => 'timestamp'], 'end' => [ApiBase::PARAM_TYPE => 'timestamp'], 'namespace' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => 'namespace'], 'user' => [ApiBase::PARAM_TYPE => 'user'], 'excludeuser' => [ApiBase::PARAM_TYPE => 'user'], 'dir' => [ApiBase::PARAM_DFLT => 'older', ApiBase::PARAM_TYPE => ['newer', 'older'], ApiHelp::PARAM_HELP_MSG => 'api-help-param-direction'], 'limit' => [ApiBase::PARAM_DFLT => 10, ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2], 'prop' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'ids|title|flags', ApiBase::PARAM_HELP_MSG_PER_VALUE => [], ApiBase::PARAM_TYPE => ['ids', 'title', 'flags', 'user', 'userid', 'comment', 'parsedcomment', 'timestamp', 'patrol', 'sizes', 'notificationtimestamp', 'loginfo']], 'show' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => [WatchedItemQueryService::FILTER_MINOR, WatchedItemQueryService::FILTER_NOT_MINOR, WatchedItemQueryService::FILTER_BOT, WatchedItemQueryService::FILTER_NOT_BOT, WatchedItemQueryService::FILTER_ANON, WatchedItemQueryService::FILTER_NOT_ANON, WatchedItemQueryService::FILTER_PATROLLED, WatchedItemQueryService::FILTER_NOT_PATROLLED, WatchedItemQueryService::FILTER_UNREAD, WatchedItemQueryService::FILTER_NOT_UNREAD]], 'type' => [ApiBase::PARAM_DFLT => 'edit|new|log|categorize', ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_HELP_MSG_PER_VALUE => [], ApiBase::PARAM_TYPE => RecentChange::getChangeTypes()], 'owner' => [ApiBase::PARAM_TYPE => 'user'], 'token' => [ApiBase::PARAM_TYPE => 'string'], 'continue' => [ApiBase::PARAM_HELP_MSG => 'api-help-param-continue']];
 }