uawdijnntqw1x1x1
IP : 216.73.217.47
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
.
/
backup
/
.
/
.
/
external_www
/
new02.medcomp.ru
/
.
/
bitrix
/
modules
/
main
/
lib
/
entity
/
validator
/
base.php
/
/
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2013 Bitrix */ namespace Bitrix\Main\Entity\Validator; use Bitrix\Main\Entity; use Bitrix\Main\ArgumentTypeException; use Bitrix\Main\Localization\Loc; Loc::loadMessages(__FILE__); abstract class Base implements Entity\IValidator { /** * @var string */ protected $errorPhraseCode = 'MAIN_ENTITY_VALIDATOR'; protected $errorPhrase; /** * @param null $errorPhrase * @throws ArgumentTypeException */ public function __construct($errorPhrase = null) { if ($errorPhrase !== null && !is_string($errorPhrase)) { throw new ArgumentTypeException('errorPhrase', 'string'); } if ($errorPhrase !== null) { $this->errorPhrase = $errorPhrase; } } /** * @param $value * @param \Bitrix\Main\Entity\Field $field * @param null|string $errorPhrase * @param null|array $additionalTemplates * * @return string */ protected function getErrorMessage($value, Entity\Field $field, $errorPhrase = null, $additionalTemplates = null) { if ($errorPhrase === null) { $errorPhrase = ($this->errorPhrase !== null? $this->errorPhrase : Loc::getMessage($this->errorPhraseCode)); } $langValues = array( '#VALUE#' => $value, '#FIELD_NAME#' => $field->getName(), '#FIELD_TITLE#' => $field->getTitle() ); if (is_array($additionalTemplates)) { $langValues += $additionalTemplates; } return str_replace( array_keys($langValues), array_values($langValues), $errorPhrase ); } }
/var/./backup/././external_www/new02.medcomp.ru/./bitrix/modules/main/lib/entity/validator/base.php