Bitrix API

BlockCollection implements ItemCollection, Iterator, Countable

Table of Contents

Interfaces

ItemCollection
Iterator
Countable

Methods

__construct()  : mixed
add()  : BlockCollection
all()  : bool
clear()  : BlockCollection
count()  : int
current()  : Block|null
filter()  : BlockCollection
filterByParty()  : BlockCollection
filterByRole()  : BlockCollection
filterExcludeParty()  : BlockCollection
filterExcludeRole()  : BlockCollection
getById()  : Block|null
getIds()  : array<string|int, int>
isEmpty()  : bool
key()  : int
next()  : void
rewind()  : void
toArray()  : array<string|int, T>
valid()  : bool

Methods

all()

public all(Closure $rule) : bool
Parameters
$rule : Closure
Return values
bool

getIds()

public getIds() : array<string|int, int>
Return values
array<string|int, int>

toArray()

public toArray() : array<string|int, T>
Return values
array<string|int, T>

        
On this page

Search results