1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
context.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Sync\Util;
4
5use Bitrix\Calendar\Sync;
6use Bitrix\Calendar\Core;
7
18{
22 private array $data;
23
24 public function __construct(array $data = [])
25 {
26 $this->data = $data;
27 }
28
29 public function __get($name)
30 {
31 return $this->data[$name] ?? null;
32 }
33
34 public function __set($name, $value)
35 {
36 $this->data[$name] = $value;
37 }
38
39 public function __isset($name)
40 {
41 return isset($this->data[$name]);
42 }
43
53 public function add(string $type, string $property, $value): Context
54 {
55 $this->data[$type][$property] = $value;
56
57 return $this;
58 }
59
66 public function merge(Context $context): Context
67 {
68 $this->data = array_merge($this->data, $context->data);
69
70 return $this;
71 }
72
78 public function getByKey(string $key)
79 {
80 if (isset($this->data[$key]))
81 {
82 return null;
83 }
84
85 return $this->data[$key];
86 }
87}
$type
Определения options.php:106
merge(Context $context)
Определения context.php:66
__set($name, $value)
Определения context.php:34
__isset($name)
Определения context.php:39
__construct(array $data=[])
Определения context.php:24
add(string $type, string $property, $value)
Определения context.php:53
getByKey(string $key)
Определения context.php:78
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$context
Определения csv_new_setup.php:223
$name
Определения menu_edit.php:35
Определения culture.php:9
if(empty($signedUserToken)) $key
Определения quickway.php:257