/** * Get all Honor Type. * * The static array honorType is returned * * @access public * @static * * @param boolean $all - get All Honor Type. * * @return array - array reference of all Honor Types. * */ public static function &honor() { if (!self::$honorType) { require_once 'CRM/Core/OptionGroup.php'; self::$honorType = CRM_Core_OptionGroup::values('honor_type'); } return self::$honorType; }
/** * Get all Honor Type. * * The static array honorType is returned * * @access public * @static * * @param boolean $all - get All Honor Type. * * @return array - array reference of all Honor Types. * */ public static function &honor() { if (!self::$honorType) { self::$honorType = CRM_Core_OptionGroup::values('honor_type'); } return self::$honorType; }