Phraseanet PHP SDK API
Class

PhraseanetSDK\Repository\Subdef

class Subdef extends AbstractRepository

Methods

__construct(EntityManager $em)

from AbstractRepository
ArrayCollection findByRecord(integer $databoxId, integer $recordId, integer $devices = array(), integer $mimes = array())

Find all subdefs that belong to the provided record

Subdef findByRecordAndName(integer $databoxId, integer $recordId, string $name)

Find a subdefs by its name that belong to the provided record

Details

in AbstractRepository at line 30
public __construct(EntityManager $em)

Parameters

EntityManager $em

at line 31
public ArrayCollection findByRecord(integer $databoxId, integer $recordId, integer $devices = array(), integer $mimes = array())

Find all subdefs that belong to the provided record

Parameters

integer $databoxId The databox id
integer $recordId The record id
integer $devices an array of desired devices
integer $mimes an array of desired mimetypes

Return Value

ArrayCollection

Exceptions

RuntimeException

at line 71
public Subdef findByRecordAndName(integer $databoxId, integer $recordId, string $name)

Find a subdefs by its name that belong to the provided record

Parameters

integer $databoxId The record databoxId
integer $recordId The recordId
string $name The name of the subdef

Return Value

Subdef

Exceptions

NotFoundException