Documentation

DataCollection
in package
implements Iterator

This file is part of the Cockpit project.

(c) Artur Heinze - πŸ…°πŸ…ΆπŸ…΄πŸ…½πŸ†ƒπŸ…΄πŸ…ΉπŸ…Ύ, http://agentejo.com

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Interfaces, Classes, Traits and Enums

Iterator

Table of Contents

$items  : mixed
$position  : mixed
__construct()  : mixed
count()  : int
create()  : DataCollection
current()  : mixed
eq()  : bool
filter()  : DataCollection
first()  : null
index()  : bool|int
key()  : mixed
last()  : null
limit()  : DataCollection
next()  : mixed
not()  : DataCollection
pagination()  : Pagination
reverse()  : DataCollection
rewind()  : mixed
Iterator implementation
skip()  : DataCollection
sort()  : $this
toArray()  : array<string|int, mixed>
valid()  : mixed
setItems()  : DataCollection

Properties

Methods

__construct()

public __construct( $items) : mixed
Parameters
$items :
Return values
mixed

eq()

public eq( $index) : bool
Parameters
$index :
Return values
bool

index()

public index( $obj) : bool|int
Parameters
$obj :
Return values
bool|int

rewind()

Iterator implementation

public rewind() : mixed
Return values
mixed

sort()

public sort( $expr[, int $dir = 1 ]) : $this
Parameters
$expr :
$dir : int = 1
Return values
$this

toArray()

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

Search results