PHP Class Gc\Mvc\Listener\DocumentListener

Inheritance: extends Zend\EventManager\AbstractListenerAggregate
Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Méthodes publiques

Méthode Description
attach ( Zend\EventManager\EventManagerInterface $events ) : void Attach events
onRoute ( Zend\EventManager\EventInterface $event ) : void Check for document from route

Méthodes protégées

Méthode Description
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

Method Details

attach() public méthode

Attach events
public attach ( Zend\EventManager\EventManagerInterface $events ) : void
$events Zend\EventManager\EventManagerInterface Event manager
Résultat void

explodePath() protected méthode

Explode path
protected explodePath ( string $path ) : void
$path string Url path
Résultat void

findDocument() protected méthode

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
Résultat Gc\Document\Model

getLocale() protected méthode

Get locale according to the locale specified in the document or its parent.
protected getLocale ( Model $document ) : void
$document Gc\Document\Model Document
Résultat void

logVisitor() protected méthode

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
Résultat void

onRoute() public méthode

Check for document from route
public onRoute ( Zend\EventManager\EventInterface $event ) : void
$event Zend\EventManager\EventInterface Mvc Event
Résultat void