Class DynamicShopMessagesController

Class DynamicShopMessages

This controller fetches the dynamic shop messages from the shop portal through a CURL request. It will only perform the request once a day and use the data cache for this reason (performance).

HttpViewController implements HttpViewControllerInterface
AdminHttpViewController implements AdminStatusOnlyInterface
DynamicShopMessagesController

Methods summary

public init( void )

Initialize Controller

public actionDefault( void ) : JsonHttpControllerResponse

Default controller callback.

protected _getCacheResponse( void ) : boolean|string

Get the cached response.

protected _getRequestResponse( void ) : boolean|string

Get dynamic messages with cURL request to Gambio's servers.

Methods inherited from AdminHttpViewController

validateCurrentAdminStatus()

Methods inherited from HttpViewController

__construct(), _callActionMethod(), _getPostData(), _getPostDataCollection(), _getQueryParameter(), _getQueryParametersCollection(), _getServerData(), _render(), _validatePageToken(), getTemplateFile(), proceed()

Properties summary

protected $dataCache : DataCache

		
protected $cacheKey : string
'dynamic-shop-messages'

Properties inherited from HttpViewController

$assets, $contentView, $httpContextReader, $httpResponseProcessor, $postDataArray, $queryParametersArray, $serverDataArray