X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FExtension%2FManager%2FReport.php;h=dedbc6b7d85f15bda82fdd9cbe728472920a2cc5;hb=82e7a8b8a4054c4814900ddf5e8fc56d6819c134;hp=21f3f2f4f293b7f82c720fb5311b8ffa0350695d;hpb=397d0aec7771968e6ad649229f9a72c9c0e9b12c;p=civicrm-core.git diff --git a/CRM/Extension/Manager/Report.php b/CRM/Extension/Manager/Report.php index 21f3f2f4f2..dedbc6b7d8 100644 --- a/CRM/Extension/Manager/Report.php +++ b/CRM/Extension/Manager/Report.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * This class stores logic for managing CiviCRM extensions. @@ -36,12 +36,10 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base { /** - * */ const REPORT_GROUP_NAME = 'report_template'; /** - * */ public function __construct() { parent::__construct(TRUE); @@ -101,8 +99,8 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base { // } $customReports = $this->getCustomReportsByName(); - $cr = $this->getCustomReportsById(); - $id = $cr[$customReports[$info->key]]; + $cr = $this->getCustomReportsById(); + $id = $cr[$customReports[$info->key]]; $optionValue = CRM_Core_BAO_OptionValue::del($id); return $optionValue ? TRUE : FALSE; @@ -113,8 +111,8 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base { */ public function onPreDisable(CRM_Extension_Info $info) { $customReports = $this->getCustomReportsByName(); - $cr = $this->getCustomReportsById(); - $id = $cr[$customReports[$info->key]]; + $cr = $this->getCustomReportsById(); + $id = $cr[$customReports[$info->key]]; $optionValue = CRM_Core_BAO_OptionValue::setIsActive($id, 0); } @@ -123,8 +121,8 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base { */ public function onPreEnable(CRM_Extension_Info $info) { $customReports = $this->getCustomReportsByName(); - $cr = $this->getCustomReportsById(); - $id = $cr[$customReports[$info->key]]; + $cr = $this->getCustomReportsById(); + $id = $cr[$customReports[$info->key]]; $optionValue = CRM_Core_BAO_OptionValue::setIsActive($id, 1); } @@ -141,4 +139,5 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base { public function getCustomReportsById() { return CRM_Core_OptionGroup::values(self::REPORT_GROUP_NAME, FALSE, FALSE, FALSE, NULL, 'id', FALSE, TRUE); } + }