Phraseanet PHP SDK API
Class

PhraseanetSDK\Entity\Feed

class Feed extends AbstractEntity

Methods

__construct(EntityManager $em)

from AbstractEntity
integer getId()

The feed id

setId($id)

string getTitle()

The feed title

setTitle($title)

string getIcon()

The feed icon

setIcon($icon)

string getSubTitle()

The feed subtitle

setSubTitle($subTitle)

integer getTotalEntries()

Get the total entries of the feed

setTotalEntries($totalEntries)

DateTime getCreatedOn()

Creation date

setCreatedOn(DateTime $createdOn)

DateTime getUpdatedOn()

Last updted date

setUpdatedOn(DateTime $updatedOn)

ArrayCollection getEntries(integer $offset, interger $perPage)

Get the feed entries Return a collection of PraseanetSDL\Entity\FeedEntry object

setEntries(ArrayCollection $entries)

Boolean isPublic()

Tell whether the feed is public or not

setPublic($public)

Boolean isReadonly()

Tell whether the feed is a read only feed

setReadonly($readonly)

Boolean isDeletable()

Tell whether the feed is deletable

setDeletable($deletable)

Details

in AbstractEntity at line 21
final public __construct(EntityManager $em)

Parameters

EntityManager $em

at line 56
public integer getId()

The feed id

Return Value

integer

at line 61
public setId($id)

Parameters

$id

at line 71
public string getTitle()

The feed title

Return Value

string

at line 76
public setTitle($title)

Parameters

$title

at line 86
public string getIcon()

The feed icon

Return Value

string

at line 91
public setIcon($icon)

Parameters

$icon

at line 101
public string getSubTitle()

The feed subtitle

Return Value

string

at line 106
public setSubTitle($subTitle)

Parameters

$subTitle

at line 116
public integer getTotalEntries()

Get the total entries of the feed

Return Value

integer

at line 121
public setTotalEntries($totalEntries)

Parameters

$totalEntries

at line 131
public DateTime getCreatedOn()

Creation date

Return Value

DateTime

at line 136
public setCreatedOn(DateTime $createdOn)

Parameters

DateTime $createdOn

at line 146
public DateTime getUpdatedOn()

Last updted date

Return Value

DateTime

at line 151
public setUpdatedOn(DateTime $updatedOn)

Parameters

DateTime $updatedOn

at line 166
public ArrayCollection getEntries(integer $offset, interger $perPage)

Get the feed entries Return a collection of PraseanetSDL\Entity\FeedEntry object

/!\ This method requests the API

Parameters

integer $offset The offset
interger $perPage The number of items

Return Value

ArrayCollection

at line 171
public setEntries(ArrayCollection $entries)

Parameters

ArrayCollection $entries

at line 181
public Boolean isPublic()

Tell whether the feed is public or not

Return Value

Boolean

at line 186
public setPublic($public)

Parameters

$public

at line 196
public Boolean isReadonly()

Tell whether the feed is a read only feed

Return Value

Boolean

at line 201
public setReadonly($readonly)

Parameters

$readonly

at line 211
public Boolean isDeletable()

Tell whether the feed is deletable

Return Value

Boolean

at line 216
public setDeletable($deletable)

Parameters

$deletable