protected function getReferrerTop($VisitorsID)
	{
		$topNo = 30;
		$VisitorsReferrerTop = array();
		if ($VisitorsID) 
		{
			//Version
    		$objVisitorsReferrerTop = \Database::getInstance()
    		        ->prepare("SELECT 
                                    `visitors_referrer_dns`, 
                                    count(`id`) AS SUMRT
                                FROM 
                                    tl_visitors_referrer
                                WHERE 
                                    vid=?
                                GROUP BY `visitors_referrer_dns`
                                ORDER BY SUMRT DESC, visitors_referrer_dns ASC")
                    ->limit($topNo)
                    ->execute($VisitorsID);
    	    if ($objVisitorsReferrerTop->numRows > 0) 
    	    {
    		    while ($objVisitorsReferrerTop->next()) 
    		    {
    		    	if ($objVisitorsReferrerTop->visitors_referrer_dns !== '-') 
    		    	{
    		    		$VisitorsReferrerTop[] = array($objVisitorsReferrerTop->visitors_referrer_dns, $objVisitorsReferrerTop->SUMRT, $VisitorsID);
    		    	} 
    		    	else 
    		    	{
    		    		$VisitorsReferrerTop[] = array('- ('.$GLOBALS['TL_LANG']['MSC']['tl_visitors_stat']['referrer_direct'].')', $objVisitorsReferrerTop->SUMRT, 0);
    		    	}
    		    	
    		    }
    	    }
		}
		return $VisitorsReferrerTop;
	}
protected function getReferrerTop($VisitorsID)
	{
		$topNo = 30;
		$VisitorsReferrerTop = array();
		if ($VisitorsID) 
		{
			//Version
    		$objVisitorsReferrerTop = \Database::getInstance()
    		        ->prepare("SELECT 
                                    `visitors_referrer_dns`, 
                                    count(`id`) AS SUMRT
                                FROM 
                                    tl_visitors_referrer
                                WHERE 
                                    vid=?
                                GROUP BY `visitors_referrer_dns`
                                ORDER BY SUMRT DESC, visitors_referrer_dns ASC")
                    ->limit($topNo)
                    ->execute($VisitorsID);
    	    if ($objVisitorsReferrerTop->numRows > 0) 
    	    {
    		    while ($objVisitorsReferrerTop->next()) 
    		    {
    		    	if ($objVisitorsReferrerTop->visitors_referrer_dns !== '-') 
    		    	{
    		    		$VisitorsReferrerTop[] = array($objVisitorsReferrerTop->visitors_referrer_dns, $objVisitorsReferrerTop->SUMRT, $VisitorsID);
    		    	} 
    		    	else 
    		    	{
    		    		$VisitorsReferrerTop[] = array('- ('.$GLOBALS['TL_LANG']['MSC']['tl_visitors_stat']['referrer_direct'].')', $objVisitorsReferrerTop->SUMRT, 0);
    		    	}
    		    	
    		    }
    	    }
		}
		return $VisitorsReferrerTop;
	}
protected function getReferrerTop ( $ VisitorsID ) { $ topNo = 30 ; $ VisitorsReferrerTop = array ( ) ; if ( $ VisitorsID ) { //Version $ objVisitorsReferrerTop = \ Database :: getInstance ( ) -> prepare ( "SELECT 
                                    `visitors_referrer_dns`, 
                                    count(`id`) AS SUMRT
                                FROM 
                                    tl_visitors_referrer
                                WHERE 
                                    vid=?
                                GROUP BY `visitors_referrer_dns`
                                ORDER BY SUMRT DESC, visitors_referrer_dns ASC" ) -> limit ( $ topNo ) -> execute ( $ VisitorsID ) ; if ( $ objVisitorsReferrerTop -> numRows > 0 ) { while ( $ objVisitorsReferrerTop -> next ( ) ) { if ( $ objVisitorsReferrerTop -> visitors_referrer_dns !== '-' ) { $ VisitorsReferrerTop [ ] = array ( $ objVisitorsReferrerTop -> visitors_referrer_dns , $ objVisitorsReferrerTop -> SUMRT , $ VisitorsID ) ; } else { $ VisitorsReferrerTop [ ] = array ( '- (' . $ GLOBALS [ 'TL_LANG' ] [ 'MSC' ] [ 'tl_visitors_stat' ] [ 'referrer_direct' ] . ')' , $ objVisitorsReferrerTop -> SUMRT , 0 ) ; } } } } return $ VisitorsReferrerTop ; }
TOP 30 Referrer

@param	integer	$VisitorsID	ID des Zählers
@return	array
TOP 30 Referrer