本文整理汇总了PHP中RecentChange::getChangeTypes方法的典型用法代码示例。如果您正苦于以下问题:PHP RecentChange::getChangeTypes方法的具体用法?PHP RecentChange::getChangeTypes怎么用?PHP RecentChange::getChangeTypes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RecentChange
的用法示例。
在下文中一共展示了RecentChange::getChangeTypes方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAllowedParams
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];
}
示例2: getAllowedParams
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']];
}
示例3: getAllowedParams
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']];
}