本文整理汇总了PHP中CRM_Core_Permission::group方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Core_Permission::group方法的具体用法?PHP CRM_Core_Permission::group怎么用?PHP CRM_Core_Permission::group使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CRM_Core_Permission
的用法示例。
在下文中一共展示了CRM_Core_Permission::group方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: group
/**
* 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);
}
示例2: group
/**
* 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);
}
示例3:
/**
* 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();
}