+ finish task#442.

This commit is contained in:
chencongzhi520@gmail.com
2011-05-01 11:32:27 +00:00
parent fe8a3fbc3f
commit db9ce444ef
5 changed files with 146 additions and 75 deletions
+19
View File
@@ -115,6 +115,25 @@ class testcaseModel extends model
return $case;
}
/**
* getByQuery
*
* @param string $productID
* @param string $query
* @param string $orderBy
* @access public
* @return void
*/
public function getByQuery($productID, $query, $orderBy)
{
$tmpTestcases = $this->dao->select('*')->from(TABLE_CASE)->alias('t1')->where($query)
->andWhere('product')->eq((int)$productID)
->andWhere('deleted')->eq(0)
->orderBy($orderBy)
->fetchAll();
return $tmpTestcases;
}
/**
* Update a case.
*