protected function getTotal($VisitorsID)
	{
		$VisitorsTotalVisitCount = 0;
    	$VisitorsTotalHitCount   = 0;
	    if ($VisitorsID) 
	    {
    		//Total seit Zählung
    		$objVisitorsTotalCount = \Database::getInstance()
    		        ->prepare("SELECT 
                                    SUM(visitors_visit) AS SUMV, 
                                    SUM(visitors_hit) AS SUMH
                                FROM 
                                    tl_visitors_counter
                                WHERE 
                                    vid=?")
                    ->execute($VisitorsID);
    	    if ($objVisitorsTotalCount->numRows > 0) 
    	    {
    		    $objVisitorsTotalCount->next();
                $VisitorsTotalVisitCount = ($objVisitorsTotalCount->SUMV === null) ? 0 : $objVisitorsTotalCount->SUMV;
                $VisitorsTotalHitCount   = ($objVisitorsTotalCount->SUMH === null) ? 0 : $objVisitorsTotalCount->SUMH;
    	    }
	    }
	    return array('VisitorsTotalVisitCount' => $this->getFormattedNumber($VisitorsTotalVisitCount,0),
	                 'VisitorsTotalHitCount'   => $this->getFormattedNumber($VisitorsTotalHitCount,0)
	                );
	}
protected function getTotal($VisitorsID)
	{
		$VisitorsTotalVisitCount = 0;
    	$VisitorsTotalHitCount   = 0;
	    if ($VisitorsID) 
	    {
    		//Total seit Zählung
    		$objVisitorsTotalCount = \Database::getInstance()
    		        ->prepare("SELECT 
                                    SUM(visitors_visit) AS SUMV, 
                                    SUM(visitors_hit) AS SUMH
                                FROM 
                                    tl_visitors_counter
                                WHERE 
                                    vid=?")
                    ->execute($VisitorsID);
    	    if ($objVisitorsTotalCount->numRows > 0) 
    	    {
    		    $objVisitorsTotalCount->next();
                $VisitorsTotalVisitCount = ($objVisitorsTotalCount->SUMV === null) ? 0 : $objVisitorsTotalCount->SUMV;
                $VisitorsTotalHitCount   = ($objVisitorsTotalCount->SUMH === null) ? 0 : $objVisitorsTotalCount->SUMH;
    	    }
	    }
	    return array('VisitorsTotalVisitCount' => $this->getFormattedNumber($VisitorsTotalVisitCount,0),
	                 'VisitorsTotalHitCount'   => $this->getFormattedNumber($VisitorsTotalHitCount,0)
	                );
	}
protected function getTotal ( $ VisitorsID ) { $ VisitorsTotalVisitCount = 0 ; $ VisitorsTotalHitCount = 0 ; if ( $ VisitorsID ) { //Total seit Zählung $ objVisitorsTotalCount = \ Database :: getInstance ( ) -> prepare ( "SELECT 
                                    SUM(visitors_visit) AS SUMV, 
                                    SUM(visitors_hit) AS SUMH
                                FROM 
                                    tl_visitors_counter
                                WHERE 
                                    vid=?" ) -> execute ( $ VisitorsID ) ; if ( $ objVisitorsTotalCount -> numRows > 0 ) { $ objVisitorsTotalCount -> next ( ) ; $ VisitorsTotalVisitCount = ( $ objVisitorsTotalCount -> SUMV === null ) ? 0 : $ objVisitorsTotalCount -> SUMV ; $ VisitorsTotalHitCount = ( $ objVisitorsTotalCount -> SUMH === null ) ? 0 : $ objVisitorsTotalCount -> SUMH ; } } return array ( 'VisitorsTotalVisitCount' => $ this -> getFormattedNumber ( $ VisitorsTotalVisitCount , 0 ) , 'VisitorsTotalHitCount' => $ this -> getFormattedNumber ( $ VisitorsTotalHitCount , 0 ) ) ; }
Total Hits und Visits
Total Hits und Visits