PHP Class Ip\Application

Afficher le fichier Open project: impresspages/impresspages Class Usage Examples

Protected Properties

Свойство Type Description
$config
$configPath

Méthodes publiques

Méthode Description
__construct ( $configPath )
_handleOnlyRequest ( Request $request, array $options = [], boolean $subrequest = true ) : Ip\Response\Json | Ip\Response\PageNotFound | Ip\Response\Redirect
close ( )
getSecurityToken ( ) : string Get security token used to prevent cross site scripting attacks
getVersion ( ) : string Get framework version
handleRequest ( Request $request, array $options = [], boolean $subrequest = true ) : Ip\Response\Json | Ip\Response\Layout | Ip\Response\PageNotFound | Ip\Response\Redirect | string Handle HMVC request
handleResponse ( Ip\Response $response )
init ( )
modulesInit ( )
prepareEnvironment ( array $options = [] )
run ( array $options = [] )

Méthodes protégées

Méthode Description
addFileRoutes ( $routesFile, $plugin )
initTranslations ( $languageCode )

Method Details

__construct() public méthode

public __construct ( $configPath )
$configPath

_handleOnlyRequest() public méthode

public _handleOnlyRequest ( Request $request, array $options = [], boolean $subrequest = true ) : Ip\Response\Json | Ip\Response\PageNotFound | Ip\Response\Redirect
$request Request
$options array
$subrequest boolean
Résultat Ip\Response\Json | Ip\Response\PageNotFound | Ip\Response\Redirect

addFileRoutes() protected méthode

protected addFileRoutes ( $routesFile, $plugin )

close() public méthode

public close ( )

getSecurityToken() public méthode

Get security token used to prevent cross site scripting attacks
public getSecurityToken ( ) : string
Résultat string security token

getVersion() public static méthode

Get framework version
public static getVersion ( ) : string
Résultat string

handleRequest() public méthode

Handle HMVC request
public handleRequest ( Request $request, array $options = [], boolean $subrequest = true ) : Ip\Response\Json | Ip\Response\Layout | Ip\Response\PageNotFound | Ip\Response\Redirect | string
$request Request
$options array
$subrequest boolean
Résultat Ip\Response\Json | Ip\Response\Layout | Ip\Response\PageNotFound | Ip\Response\Redirect | string

handleResponse() public méthode

public handleResponse ( Ip\Response $response )
$response Ip\Response

init() public méthode

public init ( )

initTranslations() protected méthode

protected initTranslations ( $languageCode )

modulesInit() public méthode

public modulesInit ( )

prepareEnvironment() public méthode

public prepareEnvironment ( array $options = [] )
$options array

run() public méthode

public run ( array $options = [] )
$options array

Property Details

$config protected_oe property

protected $config

$configPath protected_oe property

protected $configPath