+ add getProjectBugs() method.

This commit is contained in:
wangchunsheng
2009-10-27 07:31:03 +00:00
parent 4e9c80bef7
commit 4f02bac70b

View File

@@ -158,4 +158,10 @@ class bugModel extends model
}
return $bugs;
}
/* 获得某个项目的bug列表。*/
public function getProjectBugs($projectID, $orderBy = 'id|desc', $pager = null)
{
return $this->dao->select('*')->from(TABLE_BUG)->where('project')->eq((int)$projectID)->orderBy($orderBy)->page($pager)->fetchAll();
}
}