PHP Класс Gc\Mvc\Listener\DocumentListener

Наследование: extends Zend\EventManager\AbstractListenerAggregate
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
attach ( Zend\EventManager\EventManagerInterface $events ) : void Attach events
onRoute ( Zend\EventManager\EventInterface $event ) : void Check for document from route

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

Метод Описание
explodePath ( string $path ) : void Explode path
findDocument ( string $path, boolean $isPreview ) : Model Find document from request uri
getLocale ( Model $document ) : void Get locale according to the locale specified in the document or its parent.
logVisitor ( boolean $isPreview, boolean $isAdmin ) : void Log visitor informations

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

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

Attach events
public attach ( Zend\EventManager\EventManagerInterface $events ) : void
$events Zend\EventManager\EventManagerInterface Event manager
Результат void

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

Explode path
protected explodePath ( string $path ) : void
$path string Url path
Результат void

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

Find document from request uri
protected findDocument ( string $path, boolean $isPreview ) : Model
$path string Path from request uri
$isPreview boolean Is the current page is a preview
Результат Gc\Document\Model

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

Get locale according to the locale specified in the document or its parent.
protected getLocale ( Model $document ) : void
$document Gc\Document\Model Document
Результат void

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

Log visitor informations
protected logVisitor ( boolean $isPreview, boolean $isAdmin ) : void
$isPreview boolean Is the current page is a preview
$isAdmin boolean Is an admin is connected
Результат void

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

Check for document from route
public onRoute ( Zend\EventManager\EventInterface $event ) : void
$event Zend\EventManager\EventInterface Mvc Event
Результат void