PHP Класс Ip\Application

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$config
$configPath

Открытые методы

Метод Описание
__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 = [] )

Защищенные методы

Метод Описание
addFileRoutes ( $routesFile, $plugin )
initTranslations ( $languageCode )

Описание методов

__construct() публичный метод

public __construct ( $configPath )
$configPath

_handleOnlyRequest() публичный метод

public _handleOnlyRequest ( Request $request, array $options = [], boolean $subrequest = true ) : Ip\Response\Json | Ip\Response\PageNotFound | Ip\Response\Redirect
$request Request
$options array
$subrequest boolean
Результат Ip\Response\Json | Ip\Response\PageNotFound | Ip\Response\Redirect

addFileRoutes() защищенный метод

protected addFileRoutes ( $routesFile, $plugin )

close() публичный метод

public close ( )

getSecurityToken() публичный метод

Get security token used to prevent cross site scripting attacks
public getSecurityToken ( ) : string
Результат string security token

getVersion() публичный статический метод

Get framework version
public static getVersion ( ) : string
Результат string

handleRequest() публичный метод

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
Результат Ip\Response\Json | Ip\Response\Layout | Ip\Response\PageNotFound | Ip\Response\Redirect | string

handleResponse() публичный метод

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

init() публичный метод

public init ( )

initTranslations() защищенный метод

protected initTranslations ( $languageCode )

modulesInit() публичный метод

public modulesInit ( )

prepareEnvironment() публичный метод

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

run() публичный метод

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

Описание свойств

$config защищенное свойство

protected $config

$configPath защищенное свойство

protected $configPath