Bitrix API

Agreement

Table of Contents

Methods

acceptByUser()  : bool
Makes acceptation of AI agreement by user.
getByCode()  : array<string|int, mixed>|null
Return agreement data by code (depends on language).
isAcceptedByUser()  : bool
Returns true if specified user accepted AI's agreement.

Methods

acceptByUser()

Makes acceptation of AI agreement by user.

public static acceptByUser(int $agreementId, int $userId) : bool
Parameters
$agreementId : int

Agreement id.

$userId : int

User id.

Return values
bool

getByCode()

Return agreement data by code (depends on language).

public static getByCode(string $code[, bool $create = false ]) : array<string|int, mixed>|null
Parameters
$code : string

Agreement code.

$create : bool = false

Create if it doesn't exist.

Return values
array<string|int, mixed>|null

isAcceptedByUser()

Returns true if specified user accepted AI's agreement.

public static isAcceptedByUser(int $agreementId, int $userId) : bool
Parameters
$agreementId : int

Agreement id.

$userId : int

User id.

Return values
bool

        
On this page

Search results