* task#554, 664, add getResovledBugs() method.

This commit is contained in:
wangchunsheng
2011-12-29 06:29:03 +00:00
parent d5219151bf
commit 4c77611bd6
+16
View File
@@ -1017,4 +1017,20 @@ class projectModel extends model
->page($pager)
->fetchAll();
}
/**
* Get resolved bugs of a project
*
* @param int $projectID
* @access public
* @return array
*/
public function getResolvedBugs($projectID)
{
$project = $this->findById($projectID);
return $this->dao->select('id, title, status')->from(TABLE_BUG)
->where('status')->eq('resovled')
->andWhere('resovledDate')->ge($project->begin)
->fetchAll();
}
}