* Fix error of "use a scalar value as an array" in metric.
This commit is contained in:
@@ -26,6 +26,8 @@ class progress_of_task_in_execution extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.consumed', 't1.left', 't1.execution');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$consumed = !empty($row->consumed) ? $row->consumed : 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_daily_finished_task_in_execution extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.finishedDate', 't1.execution');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status != 'done' || empty($row->finishedDate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_finished_task_in_execution extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.execution');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status == 'done')
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_task_in_execution extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.execution');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->execution])) $this->result[$row->execution] = 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_unfinished_task_in_execution extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.execution');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status != 'done')
|
||||
|
||||
@@ -26,6 +26,8 @@ class rate_of_delivery_story_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.closedReason', 't1.stage');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->product])) $this->result[$row->product] = array('delivered' => 0, 'valid' => 0);
|
||||
|
||||
@@ -26,6 +26,8 @@ class rate_of_finish_story_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.id', 't1.status', 't1.closedReason');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->product])) $this->result[$row->product] = array('finished' => 0, 'total' => 0, 'invalid' => 0);
|
||||
|
||||
@@ -26,6 +26,8 @@ class rate_of_fixed_bug_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.resolution', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->product])) $this->result[$row->product] = array('fixed' => 0, 'valid' => 0);
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_closed_story_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.closedDate', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status != 'closed') return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_created_case_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.openedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$product = $row->product;
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
*/
|
||||
class count_of_annual_created_productplan_in_product extends baseCalc
|
||||
{
|
||||
public $result = array();
|
||||
|
||||
public function getStatement()
|
||||
{
|
||||
return $this->dao->select('t1.id,t1.product,year(t1.createdDate) as year')->from(TABLE_PRODUCTPLAN)->alias('t1')
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_delivered_story_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.stage', 't1.releasedDate', 't1.closedReason', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$product = $row->product;
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
*/
|
||||
class count_of_annual_finished_productplan_in_product extends baseCalc
|
||||
{
|
||||
public $result = array();
|
||||
|
||||
public function getStatement()
|
||||
{
|
||||
return $this->dao->select('t1.id,t1.product,year(t1.finishedDate) as year')->from(TABLE_PRODUCTPLAN)->alias('t1')
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_case_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->product])) $this->result[$row->product] = 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_daily_closed_bug_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.status', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status != 'closed' || empty($row->closedDate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_daily_created_bug_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.openedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->openedDate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_daily_resolved_bug_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.status', 't1.resolvedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status != 'resolved' || empty($row->resolvedDate)) return false;
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
*/
|
||||
class count_of_developed_story_in_product extends baseCalc
|
||||
{
|
||||
public $result = array();
|
||||
|
||||
public function getStatement()
|
||||
{
|
||||
return $this->dao->select('t1.product,count(t1.id) as value')->from(TABLE_STORY)->alias('t1')
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_monthly_delivered_story_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.stage', 't1.releasedDate', 't1.closedReason', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$product = $row->product;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_story_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->product])) $this->result[$row->product] = 0;
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
*/
|
||||
class count_of_valid_story_in_product extends baseCalc
|
||||
{
|
||||
public $result = array();
|
||||
|
||||
public function getStatement()
|
||||
{
|
||||
return $this->dao->select('t1.product,t1.id')->from(TABLE_STORY)->alias('t1')
|
||||
|
||||
@@ -26,6 +26,8 @@ class scale_of_annual_delivered_story_in_product extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.product', 't1.stage', 't1.releasedDate', 't1.closedReason', 't1.closedDate', 't1.estimate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$product = $row->product;
|
||||
|
||||
@@ -26,6 +26,8 @@ class consume_of_task_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.consumed', 't1.project');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->project])) $this->result[$row->project] = 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class estimate_of_task_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.estimate', 't1.project');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->project])) $this->result[$row->project] = 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class left_of_task_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.left', 't1.project');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->project])) $this->result[$row->project] = 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class progress_of_task_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.consumed', 't1.left', 't1.project');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$consumed = !empty($row->consumed) ? $row->consumed : 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_bug_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.project');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->project])) $this->result[$row->project] = 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_closed_bug_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.project', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$project = $row->project;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_closed_execution_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.project', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$project = $row->project;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_doing_execution_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.project', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$project = $row->project;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_doing_task_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.project');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status != 'doing') return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_finished_task_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.project');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status != 'done') return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_opened_issue_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.project', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$project = $row->project;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_suspended_execution_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.project', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$project = $row->project;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_task_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.project');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result[$row->project])) $this->result[$row->project] = 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_wait_task_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.project');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status != 'wait') return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_wait_execution_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.project', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$project = $row->project;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_actual_time_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.id', 't1.realBegan', 't1.realEnd', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$project = $row->id;
|
||||
|
||||
@@ -26,6 +26,8 @@ class left_period_of_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.id', 't1.status', 't1.end');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status == 'closed')
|
||||
|
||||
@@ -26,6 +26,8 @@ class planned_period_of_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.id', 't1.begin', 't1.end');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$this->result[$row->id] = (strtotime($row->end) - strtotime($row->begin))/86400;
|
||||
|
||||
@@ -26,6 +26,8 @@ class variance_of_time_in_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.id', 't1.begin', 't1.end', 't1.realBegan', 't1.realEnd', 't1.status');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$project = $row->id;
|
||||
|
||||
@@ -26,6 +26,8 @@ class estimate_of_annual_closed_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.estimate', 't1.parent', 't3.status', 't3.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status != 'closed' || empty($row->closedDate) || $row->parent == -1) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class rate_of_annual_delivered_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.stage', 't1.releasedDate', 't1.closedReason', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$stage = $row->stage;
|
||||
|
||||
@@ -26,6 +26,8 @@ class rate_of_annual_finished_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.closedDate', 't1.closedReason');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($data)
|
||||
{
|
||||
$closedDate = $data->closedDate;
|
||||
|
||||
+2
@@ -26,6 +26,8 @@ class rate_of_delayed_finished_project_which_annual_finished extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedDate', 't1.realEnd', 't1.firstEnd');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class rate_of_delivered_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.closedReason', 't1.stage');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result['delivered'])) $this->result['delivered'] = 0;
|
||||
|
||||
@@ -26,6 +26,8 @@ class rate_of_finished_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedReason');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(!isset($this->result['finished'])) $this->result['finished'] = 0;
|
||||
|
||||
+2
@@ -26,6 +26,8 @@ class rate_of_undelayed_finished_project_which_annual_finished extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedDate', 't1.realEnd', 't1.firstEnd');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_closed_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) || $row->status != 'closed') return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_closed_top_program extends baseCalc
|
||||
|
||||
public $fieldList = array('status', 'closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) or $row->status != 'closed') return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_created_feedback extends baseCalc
|
||||
|
||||
public $fieldList = array('openedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->openedDate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_created_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.openedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->openedDate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_created_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.openedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($data)
|
||||
{
|
||||
$openedDate = $data->openedDate;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_created_task extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.openedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($data)
|
||||
{
|
||||
$openedDate = $data->openedDate;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_created_top_program extends baseCalc
|
||||
|
||||
public $fieldList = array('openedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->openedDate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_delivered_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.stage', 't1.releasedDate', 't1.closedReason', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($data)
|
||||
{
|
||||
$stage = $data->stage;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_finished_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.realEnd');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->realEnd)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_finished_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.closedDate', 't1.closedReason');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($data)
|
||||
{
|
||||
$closedDate = $data->closedDate;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_annual_finished_task extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.finishedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($data)
|
||||
{
|
||||
if(empty($data->finishedDate) or $data->status != 'done') return false;
|
||||
|
||||
+2
@@ -26,6 +26,8 @@ class count_of_delayed_finished_execution_which_annual_finished extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedDate', 't1.firstEnd');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) || empty($row->firstEnd)) return false;
|
||||
|
||||
+2
@@ -26,6 +26,8 @@ class count_of_delayed_finished_project_which_annual_finished extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedDate', 't1.realEnd', 't1.firstEnd');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) || empty($row->firstEnd) || empty($row->realEnd)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_monthly_closed_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) || $row->status != 'closed') return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_monthly_created_project extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.openedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->openedDate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_monthly_created_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.openedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($data)
|
||||
{
|
||||
$openedDate = $data->openedDate;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_monthly_finished_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.closedDate', 't1.closedReason');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($data)
|
||||
{
|
||||
$closedDate = $data->closedDate;
|
||||
|
||||
+2
@@ -26,6 +26,8 @@ class count_of_undelayed_finished_execution_which_annual_finished extends baseCa
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedDate', 't1.firstEnd');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) || empty($row->firstEnd)) return false;
|
||||
|
||||
+2
@@ -26,6 +26,8 @@ class count_of_undelayed_finished_project_which_annual_finished extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedDate', 't1.realEnd', 't1.firstEnd');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) || empty($row->firstEnd) || empty($row->realEnd)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_weekly_created_release extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.createdDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$year = $this->getYear($row->createdDate);
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_weekly_finished_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedReason', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$year = $this->getYear($row->closedDate);
|
||||
|
||||
@@ -26,6 +26,8 @@ class scale_of_annual_closed_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.estimate', 't1.status', 't1.closedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) or !isset($row->estimate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class scale_of_annual_delivered_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.stage', 't1.releasedDate', 't1.closedReason', 't1.closedDate', 't1.estimate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$date = null;
|
||||
|
||||
@@ -26,6 +26,8 @@ class scale_of_annual_finished_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.estimate', 't1.status', 't1.closedDate', 't1.closedReason');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) or !isset($row->estimate)) return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class scale_of_monthly_closed_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedDate', 't1.estimate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
if(empty($row->closedDate) || $row->status != 'closed') return false;
|
||||
|
||||
@@ -26,6 +26,8 @@ class scale_of_monthly_delivered_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.stage', 't1.releasedDate', 't1.closedReason', 't1.closedDate', 't1.estimate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$date = null;
|
||||
|
||||
@@ -26,6 +26,8 @@ class scale_of_weekly_finished_story extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.closedReason', 't1.closedDate', 't1.estimate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$year = $this->getYear($row->closedDate);
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_assigned_bug_in_user extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.assignedTo');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$assignedTo = $row->assignedTo;
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
*/
|
||||
class count_of_assigned_case_in_user extends baseCalc
|
||||
{
|
||||
public $result = array();
|
||||
|
||||
public function getStatement()
|
||||
{
|
||||
return $this->dao->select('t1.assignedTo')->from(TABLE_TESTRUN)->alias('t1')
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_assigned_feedback_in_user extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.assignedTo');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$assignedTo = $row->assignedTo;
|
||||
|
||||
@@ -27,6 +27,8 @@ class count_of_daily_fixed_bug_in_user extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.resolvedBy', 't1.resolvedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$resolvedDate = $row->resolvedDate;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_daily_review_feedback_in_user extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.reviewedBy', 't1.reviewedDate');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$reviewedDate = $row->reviewedDate;
|
||||
|
||||
@@ -26,6 +26,8 @@ class count_of_reviewing_feedback_in_user extends baseCalc
|
||||
|
||||
public $fieldList = array('t1.status', 't1.assignedTo');
|
||||
|
||||
public $result = array();
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
$assignedTo = $row->assignedTo;
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* 按人员统计的待评审研发需求数。
|
||||
* count_of_reviewing_story_in_user.
|
||||
*
|
||||
* 范围:user
|
||||
* 对象:story
|
||||
* 目的:scale
|
||||
* 度量名称:按人员统计的待评审研发需求数
|
||||
* 单位:个
|
||||
* 描述:按人员统计的待评审研发需求数表示每个人需要评审的研发需求数量之和。反映了每个人需要评审的研发需求的规模。该数值越大,说明需要投入越多的时间评审需求。
|
||||
* 定义:所有研发需求个数求和;状态为评审中;指派给为某人;过滤已删除的研发需求;过滤已删除产品的研发需求
|
||||
* 度量库:
|
||||
* 收集方式:realtime
|
||||
*
|
||||
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||||
* @author qixinzhi <qixinzhi@easycorp.ltd>
|
||||
* @package
|
||||
* @uses func
|
||||
* @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_reviewing_story_in_user extends baseCalc
|
||||
{
|
||||
public $dataset = null;
|
||||
|
||||
public $fieldList = array();
|
||||
|
||||
//public funtion getStatement($dao)
|
||||
//{
|
||||
//}
|
||||
|
||||
public function calculate($row)
|
||||
{
|
||||
}
|
||||
|
||||
public function getResult($options = array())
|
||||
{
|
||||
$records = $this->getRecords(array('value'));
|
||||
return $this->filterByOptions($records, $options);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user