| 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.
class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base {
/**
- *
*/
const REPORT_GROUP_NAME = 'report_template';
/**
- *
*/
public function __construct() {
parent::__construct(TRUE);
// }
$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;
*/
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);
}
*/
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);
}
public function getCustomReportsById() {
return CRM_Core_OptionGroup::values(self::REPORT_GROUP_NAME, FALSE, FALSE, FALSE, NULL, 'id', FALSE, TRUE);
}
+
}