8namespace Bitrix\Main\UserConsent\Internals;
10use Bitrix\Main\ORM\Fields\Relations\OneToMany;
11use Bitrix\Main\Type\DateTime;
12use Bitrix\Main\Localization\Loc;
13use Bitrix\Main\ORM\Data\DataManager;
15Loc::loadMessages(__FILE__);
42 return 'b_consent_user_consent';
55 'data_type' =>
'integer',
57 'autocomplete' =>
true,
59 'DATE_INSERT' =>
array(
60 'data_type' =>
'datetime',
64 'AGREEMENT_ID' =>
array(
65 'data_type' =>
'integer',
69 'data_type' =>
'integer',
72 'data_type' =>
'string',
74 'validation' =>
function()
79 return filter_var($value, FILTER_VALIDATE_IP) !==
false;
85 'data_type' =>
'string',
89 'data_type' =>
'string',
92 'ORIGINATOR_ID' =>
array(
93 'data_type' =>
'string',
97 'data_type' =>
'Bitrix\Main\UserTable',
98 'reference' =>
array(
'=this.USER_ID' =>
'ref.ID'),
100 (
new OneToMany(
'ITEMS', UserConsentItemTable::class,
'USER_CONSENT'))
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)