add option to search by filter ID to be consistent with UI, and change param descriptions to be less ambiguous

This commit is contained in:
Alex Z. 2009-03-29 00:12:40 +00:00
parent 2e9bd6dd80
commit 79360d48a4

View file

@ -79,6 +79,7 @@ class ApiQueryAbuseLog extends ApiQueryBase {
$this->addWhereRange('afl_timestamp', $params['dir'], $params['start'], $params['end']);
$this->addWhereIf( array('afl_user_text' => $params['user']), isset($params['user']));
$this->addWhereIf( array('afl_filter' => $params['filter']), isset($params['filter']));
$title = $params['title'];
if (!is_null($title)) {
@ -150,6 +151,7 @@ class ApiQueryAbuseLog extends ApiQueryBase {
),
'user' => null,
'title' => null,
'filter' => null,
'limit' => array(
ApiBase :: PARAM_DFLT => 10,
ApiBase :: PARAM_TYPE => 'limit',
@ -179,8 +181,9 @@ class ApiQueryAbuseLog extends ApiQueryBase {
'start' => 'The timestamp to start enumerating from',
'end' => 'The timestamp to stop enumerating at',
'dir' => 'The direction in which to enumerate',
'title' => 'Filter entries to those occurring on a given page.',
'user' => 'Filter entries to those done by a given user or IP address.',
'title' => 'Show only entries occurring on a given page.',
'user' => 'Show only entries done by a given user or IP address.',
'filter' => 'Show only entries that were caught by a given filter ID',
'limit' => 'The maximum amount of entries to list',
'prop' => 'Which properties to get',
);