ArticleGalley::getViews PHP Method

getViews() public method

Get views count.
public getViews ( ) : integer
return integer
    function getViews()
    {
        $application = PKPApplication::getApplication();
        return $application->getPrimaryMetricByAssoc(ASSOC_TYPE_GALLEY, $this->getId());
    }