class FileUsageRepository extends EntityRepository (View source)

Methods

findByFile(File|int $file)

Find usage records related to a file

findByCollection(Collection|int $collection, Version|int|null $version = null)

Find FileUsageRecords given a collection and a version

findByBlock($block)

Find FileUsageRecords given a block

findBy(array $criteria, array $orderBy = null, null $limit = null, null $offset = null)

No description

Details

FileUsageRecord[] findByFile(File|int $file)

Find usage records related to a file

Parameters

File|int $file

The file object or the file id

Return Value

FileUsageRecord[]

FileUsageRecord[] findByCollection(Collection|int $collection, Version|int|null $version = null)

Find FileUsageRecords given a collection and a version

Parameters

Collection|int $collection

A collection or a collection ID

Version|int|null $version

The version, a version ID, or null

Return Value

FileUsageRecord[]

FileUsageRecord[] findByBlock($block)

Find FileUsageRecords given a block

Parameters

$block

Return Value

FileUsageRecord[]

FileUsageRecord[] findBy(array $criteria, array $orderBy = null, null $limit = null, null $offset = null)

No description

Parameters

array $criteria
array $orderBy
null $limit
null $offset

Return Value

FileUsageRecord[]