Module: MediaWiki::Query::Lists::Log::Patrol

Included in:
MediaWiki::Query::Lists::Log
Defined in:
lib/mediawiki/query/lists/log/patrol.rb

Instance Method Summary collapse

Instance Method Details

#get_patrol_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>

Gets patrol/patrol logs.

Parameters:

Returns:

  • (Array<Hash>)

    The events, containing the following keys: id, title, user, comment, current_revision, previous_revision, timestamp.

See Also:

Since:

  • 0.10.0



12
13
14
15
16
17
18
19
20
21
# File 'lib/mediawiki/query/lists/log/patrol.rb', line 12

def get_patrol_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default)
  response = get_log('patrol/patrol', user, title, start, stop, limit)

  ret = []
  response['query']['logevents'].each do |log|
    ret << loghash_patrol(log)
  end

  ret
end