/** * Get all permissioned groups from database * * The static array group is returned, and if it's * called the first time, the <b>Group DAO</b> is used * to get all the groups. * * Note: any database errors will be trapped by the DAO. * * @param string $groupType type of group(Access/Mailing) * @param boolen $excludeHidden exclude hidden groups. * @access public * @static * * @return array - array reference of all groups. * */ public static function group($groupType = null, $excludeHidden = true) { require_once 'CRM/Core/Permission.php'; return CRM_Core_Permission::group($groupType, $excludeHidden); }
/** * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object. * * Get all permissioned groups from database * * The static array group is returned, and if it's * called the first time, the <b>Group DAO</b> is used * to get all the groups. * * Note: any database errors will be trapped by the DAO. * * @param string $groupType type of group(Access/Mailing) * @param boolen $excludeHidden exclude hidden groups. * @access public * @static * * @return array - array reference of all groups. * */ public static function group($groupType = NULL, $excludeHidden = TRUE) { return CRM_Core_Permission::group($groupType, $excludeHidden); }
/** * Get all permissioned groups from database * * The static array group is returned, and if it's * called the first time, the <b>Group DAO</b> is used * to get all the groups. * * Note: any database errors will be trapped by the DAO. * * @access public * @static * * @return array - array reference of all groups. * */ function &group() { require_once 'CRM/Core/Permission.php'; return CRM_Core_Permission::group(); }