module MediaWiki::Query::Lists::Log::Upload
@todo upload/revert
Public Instance Methods
get_upload_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default)
click to toggle source
Gets upload/upload 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, sha,
comment, timestamp.
# File lib/mediawiki/query/lists/log/upload.rb, line 30 def get_upload_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) resp = get_log('upload/upload', user, title, start, stop, limit) ret = [] resp['query']['logevents'].each do |log| ret << loghash_upload(log) end ret end
get_upload_overwrite_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default)
click to toggle source
Gets upload/overwrite 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, sha,
comment, timestamp.
# File lib/mediawiki/query/lists/log/upload.rb, line 13 def get_upload_overwrite_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) resp = get_log('upload/overwrite', user, title, start, stop, limit) ret = [] resp['query']['logevents'].each do |log| ret << loghash_upload(log) end ret end