1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
errorcollection.php
См. документацию.
1<?php
8
9namespace Bitrix\Main;
10
11use Bitrix\Main\Type\Dictionary;
12
14{
19 public function __construct(array $values = null)
20 {
21 if($values)
22 {
23 $this->add($values);
24 }
25 }
26
32 public function add(array $errors)
33 {
34 foreach($errors as $error)
35 {
36 $this->setError($error);
37 }
38 }
39
45 public function getErrorByCode($code)
46 {
47 foreach($this->values as $error)
48 {
50 if($error->getCode() === $code)
51 {
52 return $error;
53 }
54 }
55
56 return null;
57 }
58
65 public function setError(Error $error, $offset = null)
66 {
67 parent::offsetSet($offset, $error);
68 }
69
75 public function offsetSet($offset, $value)
76 {
77 $this->setError($value, $offset);
78 }
79}
setError(Error $error, $offset=null)
Определения errorcollection.php:65
__construct(array $values=null)
Определения errorcollection.php:19
add(array $errors)
Определения errorcollection.php:32
offsetSet($offset, $value)
Определения errorcollection.php:75
Определения error.php:15
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$errors
Определения iblock_catalog_edit.php:74
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
Определения options.php:195
getErrorByCode($code)
Определения errorableimplementation.php:53
$error
Определения subscription_card_product.php:20