Module: MediaWiki::Query::Lists::Log::Delete
- Included in:
- MediaWiki::Query::Lists::Log
- Defined in:
- lib/mediawiki/query/lists/log/delete.rb
Overview
TODO:
delete/event
TODO:
delete/revision
Instance Method Summary collapse
-
#get_delete_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets delete/delete logs.
-
#get_deletion_restore_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets delete/restore logs.
Instance Method Details
#get_delete_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets delete/delete logs.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mediawiki/query/lists/log/delete.rb', line 13 def get_delete_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) response = get_log('delete/delete', user, title, start, stop, limit) ret = [] response['query']['logevents'].each do |log| ret << loghash_general(log) end ret end |
#get_deletion_restore_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets delete/restore logs.
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/mediawiki/query/lists/log/delete.rb', line 29 def get_deletion_restore_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) resp = get_log('delete/restore', user, title, start, stop, limit) ret = [] resp['query']['logevents'].each do |log| ret << loghash_general(log) end ret end |