class NewsflowSlotItem (View source)

Class NewsflowSlotItem.

\@package Concrete\Core\Activity

Properties

protected $content

Methods

__construct($content = null)

No description

mixed
getContent()

No description

parseResponse(string $response)

No description

Details

__construct($content = null)

Parameters

$content

mixed getContent()

Return Value

mixed

NewsflowSlotItem[] parseResponse(string $response)

Parameters

string $response Parses a JSON response that looks similar to below { 'slots': { 'slotKey1': 'content', 'slotKey2': 'other content', ... } }

Return Value

NewsflowSlotItem[] Returns an associative array of NewsflowSlotItems