Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
category.php
1<?php
2
4
12{
13 private $key;
14 private $label;
15 private $parentKey = NULL;
16 private $relations = array();
17
21 public function getParentKey()
22 {
23 return $this->parentKey;
24 }
25
32 public function setParentKey($parentKey)
33 {
34 $this->parentKey = $parentKey;
35 }
36
40 public function getKey()
41 {
42 return $this->key;
43 }
44
51 public function setKey($key)
52 {
53 $this->key = $key;
54 }
55
59 public function getLabel()
60 {
61 return $this->label;
62 }
63
70 public function setLabel($label)
71 {
72 $this->label = $label;
73 }
74
75
84 public function __set($key, $value)
85 {
86 $this->relations[$key] = $value;
87 return $this;
88 }
89
97 public function __get($value)
98 {
99 return $this->relations[$value];
100 }
101}