- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/delivery/inputs.php
- Класс: BitrixSaleDeliveryInputsPeriod
- Вызов: Period::getErrorSingle
static function getErrorSingle(array $input, $values)
{
if(!is_array($values))
throw new ArgumentTypeException('values', 'array');
self::checkArgs($input, $values);
$errors = array();
if ($error = InputManager::getError($input["ITEMS"]["FROM"], $values["FROM"]))
$errors = $error;
if ($error = InputManager::getError($input["ITEMS"]["TO"], $values["TO"]))
$errors = array_merge($errors, $error);
if ($error = InputManager::getError($input["ITEMS"]["TYPE"], $values["TYPE"]))
$errors = array_merge($errors, $error);
return $errors;
}