fetch()) { if ($dao->component_name != 'Contact' && $dao->component_name != $dao->grouping && !CRM_Core_Component::isEnabled("Civi{$dao->component_name}") ) { continue; } $rows[$dao->component_name][$dao->value]['title'] = ts($dao->label); $rows[$dao->component_name][$dao->value]['description'] = ts($dao->description); $rows[$dao->component_name][$dao->value]['url'] = CRM_Utils_System::url('civicrm/report/' . trim($dao->value, '/'), 'reset=1'); $rows[$dao->component_name][$dao->value]['instanceUrl'] = $dao->instance_id ? CRM_Utils_System::url( 'civicrm/report/list', "reset=1&ovid=$dao->id" ) : ''; } return $rows; } /** * Run this page (figure out the action needed and perform it). */ public function run() { $compID = CRM_Utils_Request::retrieve('compid', 'Positive', $this); $grouping = CRM_Utils_Request::retrieve('grp', 'String', $this); $rows = self::info($compID, $grouping); $this->assign('list', $rows); return parent::run(); } }