Файловый менеджер - Редактировать - /var/www/axolotl/data/www/axolotls.ru/www/bitrix/modules/voximplant/lib/result.php
Назад
<?php namespace Bitrix\Voximplant; use Bitrix\Main\Web\Json; class Result extends \Bitrix\Main\Result { /** * Converts result to array. * @return array */ public function toArray() { $errors = array(); foreach ($this->getErrors() as $error) { $errors[] = array( 'CODE' => $error->getCode(), 'MESSAGE' => $error->getMessage() ); } return array( 'SUCCESS' => $this->isSuccess() ? 'Y' : 'N', 'DATA' => $this->getData(), 'ERRORS' => $errors ); } /** * Converts result to JSON. * @return string */ public function toJson() { return Json::encode($this->toArray()); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.8 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка