/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
class CRM_Report_Page_TemplateList extends CRM_Core_Page {
/**
- * @param null $compID
+ * @param int $compID
* @param null $grouping
*
* @return array
if ($compID) {
if ($compID == 99) {
$compClause = " AND v.component_id IS NULL ";
- } else {
+ }
+ else {
$compClause = " AND v.component_id = {$compID} ";
}
}
}
$sql .= " ORDER BY v.weight ";
- $dao = CRM_Core_DAO::executeQuery($sql);
- $rows = array();
+ $dao = CRM_Core_DAO::executeQuery($sql);
+ $rows = array();
$config = CRM_Core_Config::singleton();
while ($dao->fetch()) {
if ($dao->component_name != 'Contact' && $dao->component_name != $dao->grouping &&
}
/**
- * run this page (figure out the action needed and perform it).
+ * Run this page (figure out the action needed and perform it).
*
* @return void
*/
- function run() {
+ public function run() {
$compID = CRM_Utils_Request::retrieve('compid', 'Positive', $this);
$grouping = CRM_Utils_Request::retrieve('grp', 'String', $this);
$rows = self::info($compID, $grouping);
return parent::run();
}
}
-