Module: MediaWiki::Query::Lists::Log::NewUsers
- Included in:
- MediaWiki::Query::Lists::Log
- Defined in:
- lib/mediawiki/query/lists/log/newusers.rb
Instance Method Summary collapse
-
#get_autocreate_users_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets newusers/autocreate logs.
-
#get_user_create2_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets newusers/create2, when one user creates another user, logs.
-
#get_user_create_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets newusers/create, when one user creates their own account, logs.
Instance Method Details
#get_autocreate_users_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets newusers/autocreate logs.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/mediawiki/query/lists/log/newusers.rb', line 11 def get_autocreate_users_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) response = get_log('newusers/autocreate', user, title, start, stop, limit) ret = [] response['query']['logevents'].each do |log| ret << loghash_user(log) end ret end |
#get_user_create2_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets newusers/create2, when one user creates another user, logs.
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/mediawiki/query/lists/log/newusers.rb', line 29 def get_user_create2_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) resp = get_log('newusers/create2', user, title, start, stop, limit) ret = [] resp['query']['logevents'].each do |log| ret << loghash_user(log) end ret end |
#get_user_create_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) ⇒ Array<Hash>
Gets newusers/create, when one user creates their own account, logs.
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/mediawiki/query/lists/log/newusers.rb', line 45 def get_user_create_log(user = nil, title = nil, start = nil, stop = nil, limit = @query_limit_default) resp = get_log('newusers/create', user, title, start, stop, limit) ret = [] resp['query']['logevents'].each do |log| ret << loghash_user(log) end ret end |