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
Parameter | Description | Version |
---|---|---|
$id | Consent ID. | |
$originatorId | Author ID. | |
$originId | Original source ID. | |
$data | Array with data. |
Example
© «Bitrix24», 2001-2024
Up