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)

No description

Parameters

$content

mixed getContent()

No description

Return Value

mixed

NewsflowSlotItem[] parseResponse(string $response)

No description

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