Phraseanet PHP SDK API
Class

PhraseanetSDK\Repository\Record

class Record extends AbstractRepository

Methods

__construct(EntityManager $em)

from AbstractRepository
Record findById(integer $databoxId, integer $recordId)

Find the record by its id that belongs to the provided databox

ArrayCollection find(integer $offsetStart, integer $perPage)

Find records

Query search(array $parameters = array())

Search for records

Details

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

Parameters

EntityManager $em

at line 28
public Record findById(integer $databoxId, integer $recordId)

Find the record by its id that belongs to the provided databox

Parameters

integer $databoxId The record databox id
integer $recordId The record id

Return Value

Record

Exceptions

RuntimeException

at line 49
public ArrayCollection find(integer $offsetStart, integer $perPage)

Find records

Parameters

integer $offsetStart The offset
integer $perPage The number of item per page

Return Value

ArrayCollection

Exceptions

RuntimeException

Search for records

Parameters

array $parameters Query parameters

Return Value

Query object

Exceptions

RuntimeException