File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/rest/lib/integration/modificationfieldsbase.php
Back
<?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); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings