%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.142.133.147 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/report/lib/visualconstructor/ |
Upload File : |
<?php namespace Bitrix\Report\VisualConstructor; /** * Class Category, create instance of this class and than you can attach it to your report * @property array children * @property array parent * @package Bitrix\Report\VisualConstructor */ class Category { private $key; private $label; private $parentKey = NULL; private $relations = array(); /** * @return mixed */ public function getParentKey() { return $this->parentKey; } /** * Setter for parent category. * * @param string $parentKey Parent category key. * @return void */ public function setParentKey($parentKey) { $this->parentKey = $parentKey; } /** * @return string Category identify key. */ public function getKey() { return $this->key; } /** * Setter for key of category. * * @param string $key Category identify key. * @return void */ public function setKey($key) { $this->key = $key; } /** * @return string */ public function getLabel() { return $this->label; } /** * Setter for category label, this label will appear in categories lists. * * @param string $label Label value. * @return void */ public function setLabel($label) { $this->label = $label; } /** * Setter for not exist properties. * All not exist properties will try to write to relations. * * @param string $key Key of set function. * @param mixed $value Value which try to set. * @return $this */ public function __set($key, $value) { $this->relations[$key] = $value; return $this; } /** * Getter for not exist properties * Return realtion value. * * @param string $value Relation name. * @return mixed */ public function __get($value) { return $this->relations[$value]; } }