PHP 클래스 Neos\Flow\ResourceManagement\ResourceRepository

Note that this repository is not part of the public API and must not be used in client code. Please use the API provided by ResourceManager instead.
또한 보기: ResourceManager
상속: extends Neos\Flow\Persistence\Repository
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$addedResources SplObjectStorage
$entityManager Doctrine\Common\Persistence\ObjectManager
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$removedResources SplObjectStorage

공개 메소드들

메소드 설명
__construct ( ) Constructor
add ( object $object )
findAllIterator ( ) : Doctrine\ORM\Internal\Hydration\IterableResult Finds all objects and return an IterableResult
findByCollectionNameIterator ( string $collectionName ) : Doctrine\ORM\Internal\Hydration\IterableResult Finds all objects by collection name and return an IterableResult
findByIdentifier ( mixed $identifier ) : object Finds an object matching the given identifier.
findBySha1 ( string $sha1Hash ) : array Find all resources with the same SHA1 hash
findOneBySha1 ( string $sha1Hash ) : PersistentResource Find one resource by SHA1
findSimilarResources ( PersistentResource $resource ) : Neos\Flow\Persistence\QueryResultInterface Finds other resources which are referring to the same resource data and filename
getAddedResources ( ) : SplObjectStorage
iterate ( Doctrine\ORM\Internal\Hydration\IterableResult $iterator, callable $callback = null ) : Generator Allow to iterate on an IterableResult and return a Generator
remove ( object $object ) : void Removes a PersistentResource object from this repository

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

add() 공개 메소드

public add ( object $object )
$object object

findAllIterator() 공개 메소드

Finds all objects and return an IterableResult
public findAllIterator ( ) : Doctrine\ORM\Internal\Hydration\IterableResult
리턴 Doctrine\ORM\Internal\Hydration\IterableResult

findByCollectionNameIterator() 공개 메소드

Finds all objects by collection name and return an IterableResult
public findByCollectionNameIterator ( string $collectionName ) : Doctrine\ORM\Internal\Hydration\IterableResult
$collectionName string
리턴 Doctrine\ORM\Internal\Hydration\IterableResult

findByIdentifier() 공개 메소드

Finds an object matching the given identifier.
public findByIdentifier ( mixed $identifier ) : object
$identifier mixed The identifier of the object to find
리턴 object The matching object if found, otherwise NULL

findBySha1() 공개 메소드

Find all resources with the same SHA1 hash
public findBySha1 ( string $sha1Hash ) : array
$sha1Hash string
리턴 array

findOneBySha1() 공개 메소드

Find one resource by SHA1
public findOneBySha1 ( string $sha1Hash ) : PersistentResource
$sha1Hash string
리턴 PersistentResource

findSimilarResources() 공개 메소드

Finds other resources which are referring to the same resource data and filename
public findSimilarResources ( PersistentResource $resource ) : Neos\Flow\Persistence\QueryResultInterface
$resource PersistentResource The resource used for finding similar resources
리턴 Neos\Flow\Persistence\QueryResultInterface The result, including the given resource

getAddedResources() 공개 메소드

public getAddedResources ( ) : SplObjectStorage
리턴 SplObjectStorage

iterate() 공개 메소드

This methos is useful for batch processing huge result set. The callback is executed after every iteration. It can be used to clear the state of the persistence layer.
public iterate ( Doctrine\ORM\Internal\Hydration\IterableResult $iterator, callable $callback = null ) : Generator
$iterator Doctrine\ORM\Internal\Hydration\IterableResult
$callback callable
리턴 Generator

remove() 공개 메소드

Removes a PersistentResource object from this repository
public remove ( object $object ) : void
$object object
리턴 void

프로퍼티 상세

$addedResources 보호되어 있는 프로퍼티

protected SplObjectStorage $addedResources
리턴 SplObjectStorage

$entityManager 보호되어 있는 프로퍼티

protected ObjectManager,Doctrine\Common\Persistence $entityManager
리턴 Doctrine\Common\Persistence\ObjectManager

$persistenceManager 보호되어 있는 프로퍼티

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface

$removedResources 보호되어 있는 프로퍼티

protected SplObjectStorage $removedResources
리턴 SplObjectStorage