fetch()) { if ($dao->component_name != 'Contact' && !in_array("Civi{$dao->component_name}", $config->enableComponents) ) { continue; } $rows[$dao->component_name][$dao->value]['title'] = $dao->label; $rows[$dao->component_name][$dao->value]['description'] = $dao->description; $rows[$dao->component_name][$dao->value]['url'] = CRM_Utils_System::url('civicrm/report/' . trim($dao->value, '/'), 'reset=1'); if ($dao->instance_id) { $rows[$dao->component_name][$dao->value]['instanceUrl'] = 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). * * @return void */ function run() { $compID = CRM_Utils_Request::retrieve('compid', 'Positive', $this); $rows = self::info($compID); $this->assign('list', $rows); return parent::run(); } }