PHP 클래스 Neos\Media\Domain\Repository\AssetRepository

상속: extends Neos\Flow\Persistence\Repository
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$assetService Neos\Media\Domain\Service\AssetService
$defaultOrderings array
$entityManager Doctrine\Common\Persistence\ObjectManager ..

공개 메소드들

메소드 설명
add ( Neos\Media\Domain\Model\AssetInterface $object )
countAll ( ) : integer
countByAssetCollection ( AssetCollection $assetCollection ) : integer Count assets by asset collection
countByTag ( Tag $tag, AssetCollection $assetCollection = null ) : integer Counts Assets with the given Tag assigned
countUntagged ( AssetCollection $assetCollection = null ) : integer Counts Assets without any tag
findAll ( AssetCollection $assetCollection = null ) : Neos\Flow\Persistence\QueryResultInterface
findAllIterator ( ) : Doctrine\ORM\Internal\Hydration\IterableResult Find all objects and return an IterableResult
findByAssetCollection ( AssetCollection $assetCollection ) : Neos\Flow\Persistence\QueryResultInterface
findBySearchTermOrTags ( string $searchTerm, array $tags = [], AssetCollection $assetCollection = null ) : Neos\Flow\Persistence\QueryResultInterface Find assets by title or given tags
findByTag ( Tag $tag, AssetCollection $assetCollection = null ) : Neos\Flow\Persistence\QueryResultInterface Find Assets with the given Tag assigned
findOneByResourceSha1 ( string $sha1 ) : Neos\Media\Domain\Model\AssetInterface | null
findUntagged ( AssetCollection $assetCollection = null ) : Neos\Flow\Persistence\QueryResultInterface Find Assets without any tag
iterate ( Doctrine\ORM\Internal\Hydration\IterableResult $iterator, callable $callback = null ) : Generator Iterate over an IterableResult and return a Generator
remove ( Neos\Media\Domain\Model\AssetInterface $object ) : void Remove an asset while first validating if the object can be removed or if removal is blocked because the asset is still in use.
removeWithoutUsageChecks ( Neos\Media\Domain\Model\AssetInterface $object ) : void Remove the asset even if it is still in use. Use with care, it is probably better to first make sure the asset is not used anymore and then use the remove() method for removal.
update ( Neos\Media\Domain\Model\AssetInterface $object )

보호된 메소드들

메소드 설명
addAssetCollectionToQueryConstraints ( Query $query, AssetCollection $assetCollection = null ) : void
addImageVariantFilterClause ( Query $query ) : Neos\Flow\Persistence\QueryInterface

메소드 상세

add() 공개 메소드

public add ( Neos\Media\Domain\Model\AssetInterface $object )
$object Neos\Media\Domain\Model\AssetInterface

addAssetCollectionToQueryConstraints() 보호된 메소드

protected addAssetCollectionToQueryConstraints ( Query $query, AssetCollection $assetCollection = null ) : void
$query Neos\Flow\Persistence\Doctrine\Query
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 void

addImageVariantFilterClause() 보호된 메소드

protected addImageVariantFilterClause ( Query $query ) : Neos\Flow\Persistence\QueryInterface
$query Neos\Flow\Persistence\Doctrine\Query
리턴 Neos\Flow\Persistence\QueryInterface

countAll() 공개 메소드

public countAll ( ) : integer
리턴 integer

countByAssetCollection() 공개 메소드

Count assets by asset collection
public countByAssetCollection ( AssetCollection $assetCollection ) : integer
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 integer

countByTag() 공개 메소드

Counts Assets with the given Tag assigned
public countByTag ( Tag $tag, AssetCollection $assetCollection = null ) : integer
$tag Neos\Media\Domain\Model\Tag
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 integer

countUntagged() 공개 메소드

Counts Assets without any tag
public countUntagged ( AssetCollection $assetCollection = null ) : integer
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 integer

findAll() 공개 메소드

public findAll ( AssetCollection $assetCollection = null ) : Neos\Flow\Persistence\QueryResultInterface
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 Neos\Flow\Persistence\QueryResultInterface

findAllIterator() 공개 메소드

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

findByAssetCollection() 공개 메소드

public findByAssetCollection ( AssetCollection $assetCollection ) : Neos\Flow\Persistence\QueryResultInterface
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 Neos\Flow\Persistence\QueryResultInterface

findBySearchTermOrTags() 공개 메소드

Find assets by title or given tags
public findBySearchTermOrTags ( string $searchTerm, array $tags = [], AssetCollection $assetCollection = null ) : Neos\Flow\Persistence\QueryResultInterface
$searchTerm string
$tags array
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 Neos\Flow\Persistence\QueryResultInterface

findByTag() 공개 메소드

Find Assets with the given Tag assigned
public findByTag ( Tag $tag, AssetCollection $assetCollection = null ) : Neos\Flow\Persistence\QueryResultInterface
$tag Neos\Media\Domain\Model\Tag
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 Neos\Flow\Persistence\QueryResultInterface

findOneByResourceSha1() 공개 메소드

public findOneByResourceSha1 ( string $sha1 ) : Neos\Media\Domain\Model\AssetInterface | null
$sha1 string
리턴 Neos\Media\Domain\Model\AssetInterface | null

findUntagged() 공개 메소드

Find Assets without any tag
public findUntagged ( AssetCollection $assetCollection = null ) : Neos\Flow\Persistence\QueryResultInterface
$assetCollection Neos\Media\Domain\Model\AssetCollection
리턴 Neos\Flow\Persistence\QueryResultInterface

iterate() 공개 메소드

This method is useful for batch processing huge result set as it clears the object manager and detaches the current object on each iteration.
public iterate ( Doctrine\ORM\Internal\Hydration\IterableResult $iterator, callable $callback = null ) : Generator
$iterator Doctrine\ORM\Internal\Hydration\IterableResult
$callback callable
리턴 Generator

remove() 공개 메소드

Remove an asset while first validating if the object can be removed or if removal is blocked because the asset is still in use.
public remove ( Neos\Media\Domain\Model\AssetInterface $object ) : void
$object Neos\Media\Domain\Model\AssetInterface
리턴 void

removeWithoutUsageChecks() 공개 메소드

Remove the asset even if it is still in use. Use with care, it is probably better to first make sure the asset is not used anymore and then use the remove() method for removal.
public removeWithoutUsageChecks ( Neos\Media\Domain\Model\AssetInterface $object ) : void
$object Neos\Media\Domain\Model\AssetInterface
리턴 void

update() 공개 메소드

public update ( Neos\Media\Domain\Model\AssetInterface $object )
$object Neos\Media\Domain\Model\AssetInterface

프로퍼티 상세

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

protected AssetService,Neos\Media\Domain\Service $assetService
리턴 Neos\Media\Domain\Service\AssetService

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

protected array $defaultOrderings
리턴 array

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

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