Phraseanet PHP SDK API
Class

PhraseanetSDK\Repository\Story

class Story extends AbstractRepository

Methods

__construct(EntityManager $em)

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

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

ArrayCollection find(integer $offsetStart, integer $perPage)

Find stories

Query search(array $parameters = array())

Search for stories

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 story 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 stories

Parameters

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

Return Value

ArrayCollection

Exceptions

RuntimeException

Search for stories

Parameters

array $parameters Query parameters

Return Value

Query object

Exceptions

RuntimeException