/**
  * Get all extensions
  *
  * The static array extensions
  *
  * FIXME: This is called by civix but not by any core code. We
  * should provide an API call which civix can use instead.
  *
  * @access public
  * @static
  *
  * @return array - array($fullyQualifiedName => $label) list of extensions
  */
 public static function &getExtensions()
 {
     if (!self::$extensions) {
         self::$extensions = array();
         $sql = '
     SELECT full_name, label
     FROM civicrm_extension
     WHERE is_active = 1
   ';
         $dao = CRM_Core_DAO::executeQuery($sql);
         while ($dao->fetch()) {
             self::$extensions[$dao->full_name] = $dao->label;
         }
     }
     return self::$extensions;
 }
Пример #2
0
 /**
  * Get all extensions 
  *
  * The static array extensions
  *
  * @access public
  * @static
  * @return array - array reference of all system extensions
  */
 public static function &getExtensions()
 {
     if (!self::$extensions) {
         require_once 'CRM/Core/OptionGroup.php';
         self::$extensions = CRM_Core_OptionGroup::values('system_extensions');
     }
     return self::$extensions;
 }