\Vigas\StreamingPlatforms\ControllerSPController

Class SPController.

Streaming Platforms Controller

Summary

Methods
Properties
Constants
__construct()
setMethodName()
executeController()
getView()
getStreams()
getGames()
getStreamsByGame()
getFollowing()
getSearch()
getLinkedAccounts()
getFirstLinkDone()
getSaveToken()
getModelParams()
getModelData()
No public properties found
No constants found
No protected methods found
$model_params
$model_data
$navbar_method_name
$method_name
N/A
No private methods found
No private properties found
N/A

Properties

$model_params

$model_params : array

Type

array — Parameters used by the model to get data

$model_data

$model_data : array

Type

array — Data got from the model

$navbar_method_name

$navbar_method_name : string

Type

string — Contains name of the SPController method used to get the navbar

$method_name

$method_name : string

Type

string — Contains name of the SPController method used to get the content

Methods

__construct()

__construct() 

Sets parameters for the model and methods name

setMethodName()

setMethodName(string  $action) : string

Sets the method name the controller will use

Parameters

string $action

The url's action parameter

Returns

string —

Returns the method name

executeController()

executeController() 

Executes SPController methods to get content and navbar

getView()

getView() 

Initiates the view and calls the appropriate view method

getStreams()

getStreams() 

Gets streams to display from a json file for the all streams view

getGames()

getGames() 

Gets games to display from a json fil for the all games view

getStreamsByGame()

getStreamsByGame() 

Gets streams to display from streaming platforms for the streams by game view

getFollowing()

getFollowing() 

Gets streams to display from streaming platforms for the following view

getSearch()

getSearch() 

Gets all data to display for the search view

getLinkedAccounts()

getLinkedAccounts() 

Gets all data to display for the Linked Accounts view

getFirstLinkDone()

getFirstLinkDone() 

Calls the setFirstLinkDone method

getSaveToken()

getSaveToken() 

Saves the token once authenticated on a streaming platform

getModelParams()

getModelParams() : array

Returns

array —

Parameters used by the model to get data

getModelData()

getModelData() : array

Returns

array —

Data got from the model