+finish task#440

This commit is contained in:
chencongzhi520@gmail.com
2011-05-01 09:44:18 +00:00
parent e7ddf76951
commit 109c2132d7
5 changed files with 162 additions and 127 deletions
+20
View File
@@ -112,6 +112,26 @@ class bugModel extends model
return $bug;
}
/**
* getByQuery
*
* @param string $productID
* @param string $query
* @param string $orderBy
* @access public
* @return void
*/
public function getByQuery($productID, $query, $orderBy)
{
$tmpBugs = $this->dao->select('*')->from(TABLE_BUG)->alias('t1')->where($query)
->andWhere('product')->eq((int)$productID)
->andWhere('deleted')->eq(0)
->orderBy($orderBy)
->fetchAll();
return $tmpBugs;
}
/**
* Update a bug.
*