1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Registry.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2;
4
9class Registry extends \ArrayObject
10{
11 public function unsetByKeys(array $keys): void
12 {
13 foreach ($keys as $key)
14 {
15 unset($this[$key]);
16 }
17 }
18
23 public function mergeRegistry(Registry $registry): self
24 {
25 foreach ($registry as $item)
26 {
27 $this[] = $item;
28 }
29
30 return $this;
31 }
32
37 public function filter(callable $predicate): self
38 {
39 $newCollection = clone $this;
40 $keyToUnset = [];
41
42 foreach ($newCollection as $key => $item)
43 {
44 if (!$predicate($item))
45 {
46 $keyToUnset[] = $key;
47 }
48 }
49
50 foreach ($keyToUnset as $key)
51 {
52 unset($newCollection[$key]);
53 }
54
55 return $newCollection;
56 }
57
61 public function getAny()
62 {
63 foreach ($this as $item)
64 {
65 return $item;
66 }
67
68 return null;
69 }
70
71 public function isEmpty(): bool
72 {
73 return $this->count() === 0;
74 }
75}
filter(callable $predicate)
Определения Registry.php:37
getAny()
Определения Registry.php:61
unsetByKeys(array $keys)
Определения Registry.php:11
mergeRegistry(Registry $registry)
Определения Registry.php:23
isEmpty()
Определения Registry.php:71
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if(empty($signedUserToken)) $key
Определения quickway.php:257
</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