PHP 클래스 Gc\Mvc\Listener\DocumentListener

상속: extends Zend\EventManager\AbstractListenerAggregate
파일 보기 프로젝트 열기: gotcms/gotcms 1 사용 예제들

공개 메소드들

메소드 설명
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