/** * Get Option Group ID for Label Formats * * @param void * * @return int Group ID (null if Group ID doesn't exist) * @access private */ private function _getGid() { if (!self::$_gid) { self::$_gid = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', 'label_format', 'id', 'name'); if (!self::$_gid) { CRM_Core_Error::fatal(ts('Label Format Option Group not found in database.')); } } return self::$_gid; }