class NewsflowItem (View source)

Class NewsflowItem.

\@package Concrete\Core\Activity

Properties

protected $id
protected $title
protected $content
protected $date
protected $description

Methods

int
getID()

No description

string
getTitle()

No description

string
getContent()

No description

mixed
getDate()

todo: determine return type.

string
getDescription()

No description

__construct(int $id = null, string $title = null, string $content = null, mixed $date = null, string $description = null)

No description

parseResponse(string $response)

No description

Details

int getID()

Return Value

int

string getTitle()

Return Value

string

string getContent()

Return Value

string

mixed getDate()

todo: determine return type.

Return Value

mixed

string getDescription()

Return Value

string

__construct(int $id = null, string $title = null, string $content = null, mixed $date = null, string $description = null)

Parameters

int $id
string $title
string $content
mixed $date todo: needs type fixed
string $description

NewsflowItem parseResponse(string $response)

Parameters

string $response A JSON encoded array. Expected format of: { 'id': value, 'title': value, 'content': value, 'date': value, 'description': value }

Return Value

NewsflowItem Returns a new NewsflowItem if one could be created from the response, otherwise throws an exception

Exceptions

Exception