+ function get_user_cond() {
+ $condition = "";
+
+ if ($this->username == 'newbies') {
+ $max = $this->dbr->selectField('user', 'max(user_id)', false, "make_sql");
+ $condition = '>' . ($max - $max / 100);
+ }
+
+ if ($condition == "") {
+ $condition = " rev_user_text=" . $this->dbr->addQuotes($this->username);
+ $index = 'usertext_timestamp';
+ } else {
+ $condition = " rev_user {$condition}";
+ $index = 'user_timestamp';
+ }
+
+ return array($index, $condition);
+ }
+
+ function get_minor_cond() {
+ if ($this->hide_minor)
+ return ' AND rev_minor_edit=0';
+ return '';
+ }
+
+ function get_namespace_cond() {
+ $nsQuery = $nsinvert = "";
+
+ if ($this->invert)
+ $nsinvert = "!";
+
+ if (!is_null($this->namespace))
+ $nsQuery .= "AND page_namespace {$nsinvert}= {$this->namespace}";
+
+ return $nsQuery;
+ }
+