[misc] add count_of_monthly_fixed_bug_in_project class and getResult method.
This commit is contained in:
@@ -18,3 +18,17 @@
|
||||
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
* @Link https://www.zentao.net
|
||||
*/
|
||||
class count_of_monthly_fixed_bug_in_project extends baseCalc
|
||||
{
|
||||
public $dataset = 'getProjectBugs';
|
||||
|
||||
public $fieldList = array('t1.id', 't1.project', 't1.resolution', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function getResult($options = array())
|
||||
{
|
||||
$records = $this->getRecords(array('project', 'year', 'month', 'value'));
|
||||
return $this->filterByOptions($records, $options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user