PHP Class Nextras\Orm\Collection\ArrayCollection

Inheritance: implements Nextras\Orm\Collection\ICollection
Exibir arquivo Open project: nextras/orm

Protected Properties

Property Type Description
$collectionFilter array
$collectionLimit array | null
$collectionSorter array
$data array
$fetchIterator Iterator
$helper Nextras\Orm\Collection\Helpers\ArrayCollectionHelper
$relationshipMapper Nextras\Orm\Mapper\IRelationshipMapper
$relationshipParent Nextras\Orm\Entity\IEntity
$repository Nextras\Orm\Repository\IRepository

Public Methods

Method Description
__call ( $name, $args )
__clone ( )
__construct ( array $data, Nextras\Orm\Repository\IRepository $repository )
count ( )
countStored ( )
fetch ( )
fetchAll ( )
fetchPairs ( $key = null, $value = null )
findBy ( array $where )
getBy ( array $where )
getEntityCount ( Nextras\Orm\Entity\IEntity $parent = null )
getEntityIterator ( Nextras\Orm\Entity\IEntity $parent = null )
getIterator ( )
getRelationshipMapper ( )
limitBy ( $limit, $offset = null )
orderBy ( $column, $direction = self::ASC )
resetOrderBy ( )
setRelationshipMapping ( Nextras\Orm\Mapper\IRelationshipMapper $mapper = null, Nextras\Orm\Entity\IEntity $parent = null )
toCollection ( $resetOrderBy = false )

Protected Methods

Method Description
getHelper ( )
processData ( )

Method Details

__call() public method

public __call ( $name, $args )

__clone() public method

public __clone ( )

__construct() public method

public __construct ( array $data, Nextras\Orm\Repository\IRepository $repository )
$data array
$repository Nextras\Orm\Repository\IRepository

count() public method

public count ( )

countStored() public method

public countStored ( )

fetch() public method

public fetch ( )

fetchAll() public method

public fetchAll ( )

fetchPairs() public method

public fetchPairs ( $key = null, $value = null )

findBy() public method

public findBy ( array $where )
$where array

getBy() public method

public getBy ( array $where )
$where array

getEntityCount() public method

public getEntityCount ( Nextras\Orm\Entity\IEntity $parent = null )
$parent Nextras\Orm\Entity\IEntity

getEntityIterator() public method

public getEntityIterator ( Nextras\Orm\Entity\IEntity $parent = null )
$parent Nextras\Orm\Entity\IEntity

getHelper() protected method

protected getHelper ( )

getIterator() public method

public getIterator ( )

getRelationshipMapper() public method

limitBy() public method

public limitBy ( $limit, $offset = null )

orderBy() public method

public orderBy ( $column, $direction = self::ASC )

processData() protected method

protected processData ( )

resetOrderBy() public method

public resetOrderBy ( )

setRelationshipMapping() public method

public setRelationshipMapping ( Nextras\Orm\Mapper\IRelationshipMapper $mapper = null, Nextras\Orm\Entity\IEntity $parent = null )
$mapper Nextras\Orm\Mapper\IRelationshipMapper
$parent Nextras\Orm\Entity\IEntity

toCollection() public method

Deprecation:
public toCollection ( $resetOrderBy = false )

Property Details

$collectionFilter protected_oe property

protected array $collectionFilter
return array

$collectionLimit protected_oe property

protected array|null $collectionLimit
return array | null

$collectionSorter protected_oe property

protected array $collectionSorter
return array

$data protected_oe property

protected array $data
return array

$fetchIterator protected_oe property

protected Iterator $fetchIterator
return Iterator

$helper protected_oe property

protected ArrayCollectionHelper,Nextras\Orm\Collection\Helpers $helper
return Nextras\Orm\Collection\Helpers\ArrayCollectionHelper

$relationshipMapper protected_oe property

protected IRelationshipMapper,Nextras\Orm\Mapper $relationshipMapper
return Nextras\Orm\Mapper\IRelationshipMapper

$relationshipParent protected_oe property

protected IEntity,Nextras\Orm\Entity $relationshipParent
return Nextras\Orm\Entity\IEntity

$repository protected_oe property

protected IRepository,Nextras\Orm\Repository $repository
return Nextras\Orm\Repository\IRepository