mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
43 lines
902 B
PHP
43 lines
902 B
PHP
<?php
|
|
|
|
namespace Alchemy\Phrasea\Collection\Reference;
|
|
|
|
interface CollectionReferenceRepository
|
|
{
|
|
/**
|
|
* @return CollectionReference[]
|
|
*/
|
|
public function findAll();
|
|
|
|
/**
|
|
* @param int $databoxId
|
|
* @return CollectionReference[]
|
|
*/
|
|
public function findAllByDatabox($databoxId);
|
|
|
|
/**
|
|
* @param int $baseId
|
|
* @return CollectionReference|null
|
|
*/
|
|
public function find($baseId);
|
|
|
|
/**
|
|
* @param int $databoxId
|
|
* @param int $collectionId
|
|
* @return CollectionReference|null
|
|
*/
|
|
public function findByCollectionId($databoxId, $collectionId);
|
|
|
|
/**
|
|
* @param CollectionReference $reference
|
|
* @return void
|
|
*/
|
|
public function save(CollectionReference $reference);
|
|
|
|
/**
|
|
* @param CollectionReference $reference
|
|
* @return void
|
|
*/
|
|
public function delete(CollectionReference $reference);
|
|
}
|