1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
collection.php
См. документацию.
1<?php
2
3namespace Bitrix\Location\Geometry\Type;
4
5use Bitrix\Main\SystemException;
6
15abstract class Collection extends BaseGeometry
16{
18 protected $components = [];
19
25 public function __construct(array $components = [])
26 {
27 foreach ($components as $component)
28 {
29 if ($component instanceof BaseGeometry)
30 {
31 $this->components[] = $component;
32 }
33 else
34 {
35 throw new SystemException('Cannot create a collection with non-geometries');
36 }
37 }
38 }
39
43 public function getComponents(): array
44 {
45 return $this->components;
46 }
47
51 public function getComponentsCount(): int
52 {
53 return count($this->components);
54 }
55
59 public function asArray(): array
60 {
61 $result = [];
62
63 foreach ($this->components as $component)
64 {
65 $result[] = $component->asArray();
66 }
67
68 return $result;
69 }
70}
__construct(array $components=[])
Определения collection.php:25
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
Определения waybill.php:936