\Vigas\ApplicationApplication

Class Application.

Manages the application

Summary

Methods
Properties
Constants
initializeApplication()
initializeSession()
getConfigFromXML()
templateRequired()
getController()
setPDOconnection()
getBaseURL()
getPath()
getPDOconnection()
getSMTPConf()
getHTTPRequest()
getUser()
No public properties found
No constants found
No protected methods found
$base_url
$path
$pdo_connection
$smtp_conf
$http_request
$user
N/A
No private methods found
No private properties found
N/A

Properties

$base_url

$base_url : string

Type

string — Website's base URL ("/dev" for development environment and "/" for production)

$path

$path : array

Type

array — URL path from the config.xml file

$pdo_connection

$pdo_connection : \PDO

Type

\PDO — Database connection configuration

$smtp_conf

$smtp_conf : array

Type

array — SMTP configuration used to send email

Methods

initializeApplication()

initializeApplication() 

Sets base_url, smtp_conf and http_request attributes

initializeSession()

initializeSession(\Vigas\Application\Model\User  $user) 

Sets the user and get the list his streaming platform accounts

Parameters

\Vigas\Application\Model\User $user

Object that contain the authenticated user

getConfigFromXML()

getConfigFromXML(string  $conf_file, string  $tag) : mixed

Gets configuration from an XML file

Parameters

string $conf_file

Path to the XML file

string $tag

XML tag name

Returns

mixed —

The requested configuration informations

templateRequired()

templateRequired() : mixed

Redirects configuration from an XML file

Returns

mixed —

The requested configuration informations

getController()

getController() 

Executes controller and gets the view according to the requested action

setPDOconnection()

setPDOconnection() 

Initialize PDO connection

getBaseURL()

getBaseURL() : string

Returns

string —

Website's base URL ("/dev" for development environment and "/" for production)

getPath()

getPath() : array

Returns

array —

URL path from the config.xml file

getPDOconnection()

getPDOconnection() : \Vigas\Application\PDO

Returns

\Vigas\Application\PDO —

the PDO connection

getSMTPConf()

getSMTPConf() : array

Returns

array —

SMTP configuration used to send email