PHP 클래스 Ojs\AnalyticsBundle\Listener\AnalyticsSubscriber

상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: ojs/ojs

공개 메소드들

메소드 설명
__construct ( EntityManager $em, Symfony\Component\HttpFoundation\RequestStack $requestStack ) AnalyticsSubscriber constructor.
getSubscribedEvents ( ) : array Returns an array of event names this subscriber wants to listen to.
onArticleFileDownload ( Ojs\SiteBundle\Event\DownloadArticleFileEvent $event )
onArticleView ( Ojs\SiteBundle\Event\ViewArticleEvent $event )
onIssueFileDownload ( Ojs\SiteBundle\Event\DownloadIssueFileEvent $event )
onIssueView ( Ojs\SiteBundle\Event\ViewIssueEvent $event )
onJournalView ( Ojs\SiteBundle\Event\ViewJournalEvent $event )

메소드 상세

__construct() 공개 메소드

AnalyticsSubscriber constructor.
public __construct ( EntityManager $em, Symfony\Component\HttpFoundation\RequestStack $requestStack )
$em Doctrine\ORM\EntityManager
$requestStack Symfony\Component\HttpFoundation\RequestStack

getSubscribedEvents() 공개 정적인 메소드

The array keys are event names and the value can be: * The method name to call (priority defaults to 0) * An array composed of the method name to call and the priority * An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: * array('eventName' => 'methodName') * array('eventName' => array('methodName', $priority)) * array('eventName' => array(array('methodName1', $priority), array('methodName2'))
public static getSubscribedEvents ( ) : array
리턴 array The event names to listen to

onArticleFileDownload() 공개 메소드

public onArticleFileDownload ( Ojs\SiteBundle\Event\DownloadArticleFileEvent $event )
$event Ojs\SiteBundle\Event\DownloadArticleFileEvent

onArticleView() 공개 메소드

public onArticleView ( Ojs\SiteBundle\Event\ViewArticleEvent $event )
$event Ojs\SiteBundle\Event\ViewArticleEvent

onIssueFileDownload() 공개 메소드

public onIssueFileDownload ( Ojs\SiteBundle\Event\DownloadIssueFileEvent $event )
$event Ojs\SiteBundle\Event\DownloadIssueFileEvent

onIssueView() 공개 메소드

public onIssueView ( Ojs\SiteBundle\Event\ViewIssueEvent $event )
$event Ojs\SiteBundle\Event\ViewIssueEvent

onJournalView() 공개 메소드

public onJournalView ( Ojs\SiteBundle\Event\ViewJournalEvent $event )
$event Ojs\SiteBundle\Event\ViewJournalEvent