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/rest/lib/integration/ |
Upload File : |
<?php namespace Bitrix\Rest\Integration; use Bitrix\Main\Engine\Controller; class ModificationFieldsBase { const TO_WHITE_LIST = 'TO_WHITE_LIST'; const TO_CAMEL = 'TO_CAMEL'; const TO_SNAKE = 'TO_SNAKE'; const SORTING_KEYS = 'SORTING_KEYS'; const CHECK_REQUIRED = 'CHECK_REQUIRED'; protected $data; protected $name; protected $format; protected $manager; protected $arguments; protected $controller; public function __construct(ViewManager $manager, $data=[]) { $this->manager = $manager; $this->name = $this->getManager()->getControllerAction()->getName(); $this->arguments = $this->getManager()->getControllerAction()->getArguments(); $this->controller = $this->getManager()->getControllerAction()->getController(); $this->data = $data; } /** * @return ViewManager */ public function getManager() { return $this->manager; } public function getName() { return $this->name; } public function getArguments() { return $this->arguments; } public function setArguments($arguments) { $this->arguments = $arguments; } public function setFormat($format): void { $this->format = $format; } public function getController() { return $this->controller; } public function getData() { return $this->data; } protected function getView(Controller $controller) { return $this->getManager()->getView($controller); } }