+ [task#144636] add the count_of_case_in_pri_in_execution func.
This commit is contained in:
@@ -12,4 +12,20 @@ class count_of_case_in_pri_in_execution extends baseCalc
|
||||
if(!isset($this->result[$row->pri])) $this->result[$row->pri] = array();
|
||||
$this->result[$row->pri][$row->id] = $row->id;
|
||||
}
|
||||
|
||||
public function getResult($options = array())
|
||||
{
|
||||
foreach($this->result as $pri => $cases)
|
||||
{
|
||||
if(!is_array($cases))
|
||||
{
|
||||
unset($this->result[$pri]);
|
||||
continue;
|
||||
}
|
||||
$this->result[$pri] = count($cases);
|
||||
}
|
||||
|
||||
$records = $this->getRecords(array('pri', 'value'));
|
||||
return $this->filterByOptions($records, $options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user