PHP Class Ip\Application

Exibir arquivo Open project: impresspages/impresspages Class Usage Examples

Protected Properties

Property Type Description
$config
$configPath

Public Methods

Method 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 = [] )

Protected Methods

Method Description
addFileRoutes ( $routesFile, $plugin )
initTranslations ( $languageCode )

Method Details

__construct() public method

public __construct ( $configPath )
$configPath

_handleOnlyRequest() public method

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

addFileRoutes() protected method

protected addFileRoutes ( $routesFile, $plugin )

close() public method

public close ( )

getSecurityToken() public method

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

getVersion() public static method

Get framework version
public static getVersion ( ) : string
return string

handleRequest() public method

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
return Ip\Response\Json | Ip\Response\Layout | Ip\Response\PageNotFound | Ip\Response\Redirect | string

handleResponse() public method

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

init() public method

public init ( )

initTranslations() protected method

protected initTranslations ( $languageCode )

modulesInit() public method

public modulesInit ( )

prepareEnvironment() public method

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

run() public method

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

Property Details

$config protected_oe property

protected $config

$configPath protected_oe property

protected $configPath