name = $name; $this->is_active = $is_active; } /** * Get a list of all known modules */ public static function getAll($fresh = FALSE) { static $result; if ($fresh || !is_array($result)) { $result = CRM_Extension_System::singleton()->getMapper()->getModules(); $config = CRM_Core_Config::singleton(); if (is_callable(array($config->userSystem, 'getModules'))) { $result = array_merge($result, $config->userSystem->getModules()); } } return $result; } }