* Add case of execution model.
This commit is contained in:
@@ -15,6 +15,24 @@ class executionTest
|
||||
$this->productModel = $tester->loadModel('product');
|
||||
}
|
||||
|
||||
/**
|
||||
* Compute cfd of a execution.
|
||||
*
|
||||
* @param int|string|array $executionID
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function computeCFDTest($executionID = 0)
|
||||
{
|
||||
$this->executionModel->computeCFD($executionID);
|
||||
|
||||
$today = helper::today();
|
||||
return $this->executionModel->dao->select('*')->from(TABLE_CFD)
|
||||
->where('date')->eq($today)
|
||||
->beginIF(!empty($executionID))->andWhere('execution')->in($executionID)->fi()
|
||||
->fetchAll('id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get no multiple execution id.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user