Bundle/AnalyticsBundle/Helper/AnalyticsViewHelper.php
public function getVisitorCountForViewReference($viewReferenceId)
    {
        $viewCount = $this->entityManager->getRepository('Victoire\Bundle\AnalyticsBundle\Entity\BrowseEvent')
            ->getNumberOfEventForViewReferenceId($viewReferenceId)
            ->getQuery()
            ->getSingleScalarResult();

        return $viewCount;
    }
public function getVisitorCountForViewReference($viewReferenceId)
    {
        $viewCount = $this->entityManager->getRepository('Victoire\Bundle\AnalyticsBundle\Entity\BrowseEvent')
            ->getNumberOfEventForViewReferenceId($viewReferenceId)
            ->getQuery()
            ->getSingleScalarResult();

        return $viewCount;
    }
public function getVisitorCountForViewReference ( $ viewReferenceId ) { $ viewCount = $ this -> entityManager -> getRepository ( 'Victoire\Bundle\AnalyticsBundle\Entity\BrowseEvent' ) -> getNumberOfEventForViewReferenceId ( $ viewReferenceId ) -> getQuery ( ) -> getSingleScalarResult ( ) ; return $ viewCount ; }
Get number of unique visitor for a viewReference.

@param string $viewReferenceId
Get number of unique visitor for a viewReference .