3namespace Bitrix\Calendar\Sync\Builders;
5use Bitrix\Calendar\Core\Base\BaseException;
6use Bitrix\Calendar\Core\Base\Date;
7use Bitrix\Calendar\Core\Role\Helper;
8use Bitrix\Calendar\Core\Role\Role;
9use Bitrix\Calendar\Sync\Vendor\Vendor;
10use Bitrix\Calendar\Sync\Vendor\VendorInterface;
11use Bitrix\Main\ArgumentException;
12use Bitrix\Main\ObjectException;
13use Bitrix\Main\ObjectPropertyException;
14use Bitrix\Main\SystemException;
15use Bitrix\Main\Type\DateTime;
22 parent::__construct(
$data);
27 return $this->data[
'ID'];
32 return $this->data[
'NAME'] ??
'';
43 return $this->data[
'SYNCHRONIZED']
44 ?
new Date(
new DateTime($this->data[
'SYNCHRONIZED'],
'Y-m-d H:i:s'))
53 return $this->data[
'SYNC_TOKEN'] ??
null;
61 return $this->data[
'LAST_RESULT'];
71 return new Vendor($this->data);
85 return Helper::getRole(
86 $this->data[
'ENTITY_ID'],
87 $this->data[
'ENTITY_TYPE']
101 return $this->data[
'IS_DELETED'] ===
'Y';
112 return $this->data[
'NEXT_SYNC_TRY']
113 ?
new Date(
new DateTime($this->data[
'NEXT_SYNC_TRY'],
'Y-m-d H:i:s'))
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)