public function getTotalPageViews($date = null)
    {
        $db = Database::connection();
        if ($date != null) {
            return $db->fetchColumn('select count(pstID) from PageStatistics where date = ? AND cID = ?', array($date, $this->getCollectionID()));
        } else {
            return $db->fetchColumn('select count(pstID) from PageStatistics where cID = ?', array($this->getCollectionID()));
        }
    }
public function getTotalPageViews($date = null)
    {
        $db = Database::connection();
        if ($date != null) {
            return $db->fetchColumn('select count(pstID) from PageStatistics where date = ? AND cID = ?', array($date, $this->getCollectionID()));
        } else {
            return $db->fetchColumn('select count(pstID) from PageStatistics where cID = ?', array($this->getCollectionID()));
        }
    }
public function getTotalPageViews ( $ date = null ) { $ db = Database :: connection ( ) ; if ( $ date != null ) { return $ db -> fetchColumn ( 'select count(pstID) from PageStatistics where date = ? AND cID = ?' , array ( $ date , $ this -> getCollectionID ( ) ) ) ; } else { return $ db -> fetchColumn ( 'select count(pstID) from PageStatistics where cID = ?' , array ( $ this -> getCollectionID ( ) ) ) ; } }
Returns the total number of page views for a specific page.
Returns the total number of page views for a specific page .