Class AbstractCollection

Class AbstractCollection

AbstractCollection implements IteratorAggregate, Countable
Abstract
Package: Shared
Category: System
Located at Shared/AbstractCollection.inc.php

Methods summary

public __construct( array|mixed|null $argumentsArray = null )

Initialize the collection instance.

public count( void ) : integer

Get collection item count.

public getArray( void ) : array

Get the collection as an array.

public getItem( $p_index ) : mixed

Get specific collection item by index.

public isEmpty( void ) : boolean

Determine whether the collection is empty or not.

protected _add( mixed $item )

Add a new item. This method must be used by child-collection classes.

protected _itemIsValid( mixed $dataItem ) : boolean

Check if a new item has the valid collection type.

protected _getExceptionText( void ) : string

Get exception text.

public getIterator( void )
abstract protected _getValidType( void ) : string

Get valid type.

Properties summary

protected $collectionContentArray : array

Content Collection

array()