Example #1
0
 /**
  * @return array
  */
 public function getComments()
 {
     $dbr = wfGetDB(DB_SLAVE);
     $result = $dbr->select('code_comment', array('cc_id', 'cc_text', 'cc_user', 'cc_user_text', 'cc_timestamp', 'cc_sortkey'), array('cc_repo_id' => $this->repoId, 'cc_rev_id' => $this->id), __METHOD__, array('ORDER BY' => 'cc_sortkey'));
     $comments = array();
     foreach ($result as $row) {
         $comments[] = CodeComment::newFromRow($this, $row);
     }
     return $comments;
 }