$from = is_null( $params['from'] ) ? null : $this->titleToKey( $params['from'] );
$to = is_null( $params['to'] ) ? null : $this->titleToKey( $params['to'] );
$this->addWhereRange( 'ar_title', $dir, $from, $to );
+
+ if ( isset( $params['prefix'] ) ) {
+ $this->addWhere( 'ar_title' . $db->buildLike( $this->titlePartToKey( $params['prefix'] ), $db->anyString() ) );
+ }
}
if ( !is_null( $params['user'] ) ) {
),
'from' => null,
'to' => null,
+ 'prefix' => null,
'continue' => null,
'unique' => false,
'user' => array(
'dir' => $this->getDirectionDescription( $this->getModulePrefix(), ' (1,2)' ),
'from' => 'Start listing at this title (3)',
'to' => 'Stop listing at this title (3)',
+ 'prefix' => 'Search for all page titles that begin with this value (3)',
'limit' => 'The maximum amount of revisions to list',
'prop' => array(
'Which properties to get',
}
public function getDescription() {
+ $p = $this->getModulePrefix();
return array(
'List deleted revisions.',
'This module operates in three modes:',
'1) List deleted revisions for the given title(s), sorted by timestamp',
'2) List deleted contributions for the given user, sorted by timestamp (no titles specified)',
- '3) List all deleted revisions in the given namespace, sorted by title and timestamp (no titles specified, druser not set)',
+ "3) List all deleted revisions in the given namespace, sorted by title and timestamp (no titles specified, {$p}user not set)",
'Certain parameters only apply to some modes and are ignored in others.',
'For instance, a parameter marked (1) only applies to mode 1 and is ignored in modes 2 and 3',
);