Documentation

addByContext

integer|null public static
\Bitrix\Main\UserConsent\Consent::addByContext(
 integer $id,
 integer|null $originatorId = null,
 integer|null $originId = null,
 array $data = array()
);

Static method adds user consent by context. Returns result ID or null on failure.

Parameters

ParameterDescriptionVersion
$idConsent ID.
$originatorIdAuthor ID.
$originIdOriginal source ID.
$dataArray with data.

Example



© «Bitrix24», 2001-2024