+ private function extractRowInfo($row) {
+
+ $title = Title :: makeTitle($row->rc_namespace, $row->rc_title);
+ if (!$title->userCanRead())
+ return false;
+
+ $vals = array ();
+
+ $vals['pageid'] = intval($row->rc_cur_id);
+ // $vals['textid'] = intval($row->rc_this_oldid); // Should this field be exposed?
+
+ ApiQueryBase :: addTitleInfo($vals, $title);
+
+ if ($this->fld_user) {
+ $vals['user'] = $row->rc_user_text;
+ if (!$row->rc_user)
+ $vals['anon'] = '';
+ }
+
+ if ($this->fld_flags) {
+ if ($row->rc_new)
+ $vals['new'] = '';
+ if ($row->rc_minor)
+ $vals['minor'] = '';
+ }
+
+ if ($this->fld_patrol && isset($row->rc_patrolled))
+ $vals['patrolled'] = '';
+
+ if ($this->fld_timestamp)
+ $vals['timestamp'] = wfTimestamp(TS_ISO_8601, $row->rc_timestamp);
+
+ if ($this->fld_comment && !empty ($row->rc_comment))
+ $vals['comment'] = $row->rc_comment;
+
+ return $vals;
+ }
+