Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
fieldcollection.php
1
<?php
2
3
namespace
Bitrix\Location\Entity\Location
;
4
5
use
Bitrix\Main\ArgumentTypeException
;
6
12
final
class
FieldCollection
extends
\Bitrix\Location\Entity\Generic\FieldCollection
13
{
15
protected
$items
= [];
16
17
public
function
addItem
($field): int
18
{
19
if
(!($field instanceof
Field
))
20
{
21
throw
new
ArgumentTypeException
(
'field must be the instance of Field'
);
22
}
23
24
return
parent::addItem($field);
25
}
26
}
Bitrix\Location\Entity\Generic\FieldCollection
Definition
fieldcollection.php:13
Bitrix\Location\Entity\Location\FieldCollection
Definition
fieldcollection.php:13
Bitrix\Location\Entity\Location\FieldCollection\addItem
addItem($field)
Definition
fieldcollection.php:17
Bitrix\Location\Entity\Location\FieldCollection\$items
$items
Definition
fieldcollection.php:15
Bitrix\Location\Entity\Location\Field
Definition
field.php:13
Bitrix\Main\ArgumentTypeException
Definition
exception.php:114
Bitrix\Location\Entity\Location
Definition
collection.php:3
modules
location
lib
entity
location
fieldcollection.php
Создано системой
1.10.0