Module: MediaWiki::Query::Lists::Log::Upload
- Included in:
- MediaWiki::Query::Lists::Log
- Defined in:
- lib/mediawiki/query/lists/log/upload.rb
Overview
TODO:
upload/revert
Instance Method Summary collapse
-
#get_upload_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash<Symbol, Any>>
Gets upload/upload logs.
-
#get_upload_overwrite_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash<Symbol, Any>>
Gets upload/overwrite logs.
Instance Method Details
#get_upload_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash<Symbol, Any>>
Gets upload/upload logs.
30 31 32 33 34 35 36 37 38 39 |
# 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) ⇒ Array<Hash<Symbol, Any>>
Gets upload/overwrite logs.
13 14 15 16 17 18 19 20 21 22 |
# 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 |