Esempio n. 1
0
 /**
  * 
  * @param type $year
  * @todo jāpieliek $year kontrole
  */
 public function actionLevel2($year, $fdm1_id)
 {
     //dates
     $months = FdpeDimPeriod::getYearMonths($year);
     //main positions
     $positions = Fdm2Dimension2::getPositions($year, $fdm1_id);
     //body
     $data = FddpDimDataPeriod::getDataLevelDim2($year, $fdm1_id);
     //table
     $table = FddpDimDataPeriod::createTable($months, $positions, $data);
     //totals
     $totals = FddpDimDataPeriod::calcTotoals($table);
     $this->render('level2', array('year' => $year, 'fdm1_id' => $fdm1_id, 'months' => $months, 'positions' => $positions, 'table' => $table, 'rows_totals' => $totals['row'], 'columns_totals' => $totals['column'], 'total' => $totals['total']));
 }