module MediaWiki::Query::Lists::Log::Rights
@todo rights/erevoke
Public Instance Methods
get_autopromotion_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default)
click to toggle source
Gets rights/autopromote logs. @param (see MediaWiki::Query::Lists::Log::Block#get_block_log
) @see (see MediaWiki::Query::Lists::Log::Block#get_block_log
) @since 0.10.0 @return [Array<Hash<Symbol, Any>>] The events, containing the following keys: id, title, user,
new_rights, old_rights, comment, timestamp.
# File lib/mediawiki/query/lists/log/rights.rb, line 13 def get_autopromotion_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) resp = get_log('rights/autopromote', user, title, start, stop, limit) ret = [] resp['query']['logevents'].each do |log| ret << loghash_rightsautopromote(log) end ret end
get_rights_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default)
click to toggle source
Gets rights/rights logs. @param (see MediaWiki::Query::Lists::Log::Block#get_block_log
) @see (see MediaWiki::Query::Lists::Log::Block#get_block_log
) @since 0.10.0 @return [Array<Hash<Symbol, Any>>] The events, containing the following keys: id, title, to, from,
new_rights, old_rights, comment, timestamp.
# File lib/mediawiki/query/lists/log/rights.rb, line 31 def get_rights_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) resp = get_log('rights/rights', user, title, start, stop, limit) ret = [] resp['query']['logevents'].each do |log| ret << loghash_rightsrights(log) end ret end