Beispiel #1
0
 public function _initReports()
 {
     $r = new Agana_Print_Menu_Report();
     $r->setGroup('Project', 'Projects Reports');
     Agana_Print_Menu_Global::saveGroup($r);
     $r = new Agana_Print_Menu_Report();
     $r->setReport('Assistances-By-Project', 'Assistances by project', 'icon-double-angle-right', 'Assistance_Domain_Activity', 'assistance', 'activity', 'report-by-project', null, 'Project');
     Agana_Print_Menu_Global::saveGroup($r);
 }
Beispiel #2
0
 public function _initReports()
 {
     /**
      * Helped
      */
     if (Persons_Domain_PersonHelped::isControllerEnabled($this->getOptions())) {
         $r = new Agana_Print_Menu_Report();
         $r->setGroup('Project', 'Projects Reports');
         Agana_Print_Menu_Global::saveGroup($r);
         $r = new Agana_Print_Menu_Report();
         $r->setReport('Person-Helped-By-Project', 'Persons helped by project', 'icon-double-angle-right', 'Persons_Domain_PersonHelped', 'persons', 'person-helped-project', 'report-by-project', null, 'Project');
         Agana_Print_Menu_Global::saveGroup($r);
     }
 }