PHP Класс Bluz\Application\Application

Автор: Anton Shevchuk
Наследование: use trait Bluz\Common\Helper, use trait Bluz\Common\Singleton
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$debugFlag Debug application flag
$environment Environment name
$layoutFlag Layout usage flag
$path Application path

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

Метод Описание
dispatch ( string $module, string $controller, array $params = [] ) : Controller Dispatch controller with params
end ( ) : void Finally method
getEnvironment ( ) : string Get application environment
getPath ( ) : string Get path to Application
getRequest ( ) : ServerRequest Get Request instance
getResponse ( ) : Response Get Response instance
init ( string $environment = 'production' ) : void Initialize process
isDebug ( ) : boolean Return Debug flag
process ( ) : void Process application
render ( ) : void Render, is send Response
run ( ) : void Run application
useLayout ( boolean | null $flag = null ) : boolean Return Layout Flag

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

Метод Описание
doDispatch ( string $module, string $controller, array $params = [] ) : Controller Do dispatch
doProcess ( ) : void Do process
initConfig ( ) : void Initial Request instance
initRequest ( ) : void Initial Request instance
initResponse ( ) : void Initial Response instance
initRouter ( ) : void Initial Router instance
postDispatch ( string $module, string $controller, array $params = [] ) : void Post dispatch mount point
postProcess ( ) : void Post process
preDispatch ( string $module, string $controller, array $params = [] ) : void Pre dispatch mount point
preProcess ( ) : void Pre process

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

dispatch() публичный Метод

Call dispatch from any \Bluz\Package Application::getInstance()->dispatch($module, $controller, array $params);
public dispatch ( string $module, string $controller, array $params = [] ) : Controller
$module string
$controller string
$params array
Результат Bluz\Controller\Controller

doDispatch() защищенный Метод

Do dispatch
protected doDispatch ( string $module, string $controller, array $params = [] ) : Controller
$module string
$controller string
$params array
Результат Bluz\Controller\Controller

doProcess() защищенный Метод

Do process
protected doProcess ( ) : void
Результат void

end() публичный Метод

Finally method
public end ( ) : void
Результат void

getEnvironment() публичный Метод

Get application environment
public getEnvironment ( ) : string
Результат string

getPath() публичный Метод

Get path to Application
public getPath ( ) : string
Результат string

getRequest() публичный Метод

Get Request instance
public getRequest ( ) : ServerRequest
Результат Zend\Diactoros\ServerRequest

getResponse() публичный Метод

Get Response instance
public getResponse ( ) : Response
Результат Bluz\Response\Response

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

Initialize process
public init ( string $environment = 'production' ) : void
$environment string
Результат void

initConfig() защищенный Метод

Initial Request instance
protected initConfig ( ) : void
Результат void

initRequest() защищенный Метод

Initial Request instance
protected initRequest ( ) : void
Результат void

initResponse() защищенный Метод

Initial Response instance
protected initResponse ( ) : void
Результат void

initRouter() защищенный Метод

Initial Router instance
protected initRouter ( ) : void
Результат void

isDebug() публичный Метод

Return Debug flag
public isDebug ( ) : boolean
Результат boolean

postDispatch() защищенный Метод

Post dispatch mount point
protected postDispatch ( string $module, string $controller, array $params = [] ) : void
$module string
$controller string
$params array
Результат void

postProcess() защищенный Метод

Post process
protected postProcess ( ) : void
Результат void

preDispatch() защищенный Метод

Pre dispatch mount point
protected preDispatch ( string $module, string $controller, array $params = [] ) : void
$module string
$controller string
$params array
Результат void

preProcess() защищенный Метод

Pre process
protected preProcess ( ) : void
Результат void

process() публичный Метод

Note: - Why you don't use "X-" prefix for custom headers? - Because it deprecated ({@link http://tools.ietf.org/html/rfc6648})
public process ( ) : void
Результат void

render() публичный Метод

Render, is send Response
public render ( ) : void
Результат void

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

Run application
public run ( ) : void
Результат void

useLayout() публичный Метод

Return Layout Flag
public useLayout ( boolean | null $flag = null ) : boolean
$flag boolean | null
Результат boolean

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

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

Debug application flag
protected $debugFlag

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

Environment name
protected $environment

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

Layout usage flag
protected $layoutFlag

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

Application path
protected $path