AgreementStoreHelper
in package
Class AgreementStoreHelper
Tags
Table of Contents
- store() : mixed
- Store an agreement
- getConfirmationTextByTextType() : int
- Returns the content group id by the provided legal text type.
- getContentGroupByTextType() : int
- Returns the content group id by the provided legal text type.
- getLegalTextVersionByTextType() : string
- Returns the content group id by the provided legal text type.
Methods
store()
Store an agreement
public
static store(IdType $languageId, string $legalTextType, AgreementCustomer $agreementCustomer, NonEmptyStringType $configKey) : mixed
Parameters
- $languageId : IdType
-
Language ID
- $legalTextType : string
-
Legal text type. Use the LegalTextType class constants.
- $agreementCustomer : AgreementCustomer
-
Agreement customer object
- $configKey : NonEmptyStringType
-
GM configuration key
Return values
mixed —getConfirmationTextByTextType()
Returns the content group id by the provided legal text type.
private
static getConfirmationTextByTextType(string $textType, string $languageId) : int
Parameters
- $textType : string
-
Use the LegalTextType class constants.
- $languageId : string
-
Language ID.
Return values
int —getContentGroupByTextType()
Returns the content group id by the provided legal text type.
private
static getContentGroupByTextType(string $textType) : int
Parameters
- $textType : string
-
Use the LegalTextType class constants.
Return values
int —Content group.
getLegalTextVersionByTextType()
Returns the content group id by the provided legal text type.
private
static getLegalTextVersionByTextType(string $textType, int $languageId) : string
Parameters
- $textType : string
-
Use the LegalTextType class constants.
- $languageId : int
-
Language ID.
Return values
string —Legal text version.