AgreementStoreHelper

Class AgreementStoreHelper

category

System

package

Agreement

Methods

Returns the content group id by the provided legal text type.

getConfirmationTextByTextType(string $textType, string $languageId) : integer
static

Arguments

$textType

string

Use the LegalTextType class constants.

$languageId

string

Language ID.

Response

integer

Returns the content group id by the provided legal text type.

getContentGroupByTextType(string $textType) : integer
static

Arguments

$textType

string

Use the LegalTextType class constants.

Response

integer

Content group.

Returns the content group id by the provided legal text type.

getLegalTextVersionByTextType(string $textType, integer $languageId) : string
static

Arguments

$textType

string

Use the LegalTextType class constants.

$languageId

integer

Language ID.

Response

string

Legal text version.

Store an agreement

store(\IdType $languageId, string $legalTextType, \AgreementCustomer $agreementCustomer, \NonEmptyStringType $configKey) 
static

Arguments

$languageId

\IdType

Language ID

$legalTextType

string

Legal text type. Use the LegalTextType class constants.

$agreementCustomer

\AgreementCustomer

Agreement customer object

$configKey

\NonEmptyStringType

GM configuration key