File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/main/lib/controller/numerator.php
Back
<?php namespace Bitrix\Main\Controller; use Bitrix\Main; /** * Class Numerator * @package Bitrix\Main\Controller */ class Numerator extends Main\Engine\Controller { /** * @return array * @throws \Bitrix\Main\ArgumentException * @throws \Bitrix\Main\NotImplementedException * @throws \Bitrix\Main\SystemException */ public function saveAction() { $request = $this->getRequest(); $result = (new Main\Numerator\Service\NumeratorRequestManager($request))->saveFromRequest(); if (!$result->isSuccess()) { foreach ($result->getErrorCollection() as $index => $error) { $this->errorCollection[] = $error; } return []; } $resultData = $result->getData(); $numeratorType = null; if (!empty($resultData) && !empty($resultData['TYPE'])) { $numeratorType = $resultData['TYPE']; } return ['id' => $id = $result->getId(), 'type' => $numeratorType]; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings