PHP 클래스 Puli\Repository\Resource\Collection\LazyResourceCollection

This collection is read-only. Each resource is loaded when it is accessed for the first time.
부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: implements IteratorAggregat\IteratorAggregate, implements Puli\Repository\Api\ResourceCollection
파일 보기 프로젝트 열기: puli/repository

공개 메소드들

메소드 설명
__construct ( Puli\Repository\Api\ResourceRepository $repo, array $paths ) Creates a new collection.
add ( Puli\Repository\Api\Resource\PuliResource $resource ) Not supported.
clear ( ) Not supported.
count ( )
get ( $key )
getIterator ( $mode = ResourceCollectionIterator::KEY_AS_CURSOR )
getNames ( )
getPaths ( )
has ( $key )
isEmpty ( )
keys ( )
merge ( Puli\Repository\Api\Resource\PuliResource[] | Traversabl\Traversable $resources ) Not supported.
offsetExists ( $key )
offsetGet ( $key )
offsetSet ( string $key, Puli\Repository\Api\Resource\PuliResource $resource ) Not supported.
offsetUnset ( string $key ) Not supported.
remove ( string $key ) Not supported.
replace ( Puli\Repository\Api\Resource\PuliResource[] | Traversabl\Traversable $resources ) Not supported.
set ( integer $key, Puli\Repository\Api\Resource\PuliResource $resource ) Not supported.
toArray ( )

비공개 메소드들

메소드 설명
load ( ) Loads the complete collection.

메소드 상세

__construct() 공개 메소드

Creates a new collection.
public __construct ( Puli\Repository\Api\ResourceRepository $repo, array $paths )
$repo Puli\Repository\Api\ResourceRepository The repository that will be used to load the resources.
$paths array The paths of the resources which will be loaded into the collection.

add() 공개 메소드

Not supported.
public add ( Puli\Repository\Api\Resource\PuliResource $resource )
$resource Puli\Repository\Api\Resource\PuliResource The resource to add.

clear() 공개 메소드

Not supported.
public clear ( )

count() 공개 메소드

public count ( )

get() 공개 메소드

public get ( $key )

getIterator() 공개 메소드

public getIterator ( $mode = ResourceCollectionIterator::KEY_AS_CURSOR )

getNames() 공개 메소드

public getNames ( )

getPaths() 공개 메소드

public getPaths ( )

has() 공개 메소드

public has ( $key )

isEmpty() 공개 메소드

public isEmpty ( )

keys() 공개 메소드

public keys ( )

merge() 공개 메소드

Not supported.
public merge ( Puli\Repository\Api\Resource\PuliResource[] | Traversabl\Traversable $resources )
$resources Puli\Repository\Api\Resource\PuliResource[] | Traversabl\Traversable The resources to merge into the collection.

offsetExists() 공개 메소드

public offsetExists ( $key )

offsetGet() 공개 메소드

public offsetGet ( $key )

offsetSet() 공개 메소드

Not supported.
public offsetSet ( string $key, Puli\Repository\Api\Resource\PuliResource $resource )
$key string The collection key to set.
$resource Puli\Repository\Api\Resource\PuliResource The resource to set.

offsetUnset() 공개 메소드

Not supported.
public offsetUnset ( string $key )
$key string The collection key to remove.

remove() 공개 메소드

Not supported.
public remove ( string $key )
$key string The collection key to remove.

replace() 공개 메소드

Not supported.
public replace ( Puli\Repository\Api\Resource\PuliResource[] | Traversabl\Traversable $resources )
$resources Puli\Repository\Api\Resource\PuliResource[] | Traversabl\Traversable The resources to replace the collection contents with.

set() 공개 메소드

Not supported.
public set ( integer $key, Puli\Repository\Api\Resource\PuliResource $resource )
$key integer The collection key.
$resource Puli\Repository\Api\Resource\PuliResource The resource to add.

toArray() 공개 메소드

public toArray ( )