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
$items
protected
mixed
$items
$position
protected
mixed
$position
= 0
Methods
__construct()
public
__construct( $items) : mixed
Parameters
Return values
mixed —count()
public
count() : int
Return values
int —create()
public
static create( $items) : DataCollection
Parameters
Return values
DataCollection —current()
public
current() : mixed
Return values
mixed —eq()
public
eq( $index) : bool
Parameters
Return values
bool —filter()
public
filter( $criteria) : DataCollection
Parameters
Return values
DataCollection —first()
public
first() : null
Return values
null —index()
public
index( $obj) : bool|int
Parameters
Return values
bool|int —key()
public
key() : mixed
Return values
mixed —last()
public
last() : null
Return values
null —limit()
public
limit( $number) : DataCollection
Parameters
Return values
DataCollection —next()
public
next() : mixed
Return values
mixed —not()
public
not( $criteria) : DataCollection
Parameters
Return values
DataCollection —pagination()
public
pagination([ $limit = 5 ][, $current = 1 ]) : Pagination
Parameters
Return values
Pagination —reverse()
public
reverse() : DataCollection
Return values
DataCollection —rewind()
Iterator implementation
public
rewind() : mixed
Return values
mixed —skip()
public
skip( $number) : DataCollection
Parameters
Return values
DataCollection —sort()
public
sort( $expr[, int $dir = 1 ]) : $this
Parameters
Return values
$this —toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —valid()
public
valid() : mixed
Return values
mixed —setItems()
protected
setItems( $items) : DataCollection