function getIntervalResults($offset, $limit) { $result = array(); $db =& wfGetDB(DB_SLAVE); EditConflict::deleteExpiredData($db); $res = $db->select('ec_current_edits', array('edit_id', 'page_namespace as ns', 'page_title as title', 'start_time', 'user_name'), '', __METHOD__, array('ORDER BY' => $this->order_string, 'OFFSET' => intval($offset), 'LIMIT' => intval($limit))); while ($row = $db->fetchObject($res)) { $result[] = $row; } return $result; }