classes/BannerStatisticsHelper.php
protected function getMaxViewsClicksStatus( &$Banner )
    {
        $intMaxViews = false;
        $intMaxClicks= false;
        
        if ($Banner['banner_until'] == 1
         && $Banner['banner_views_until'] != ''
         && $Banner['banner_views'] >= $Banner['banner_views_until']
           )
        {
            //max views erreicht
            $intMaxViews =  true;
        }
        
        if ($Banner['banner_until'] == 1
         && $Banner['banner_clicks_until'] !=''
         && $Banner['banner_clicks'] >= $Banner['banner_clicks_until']
           )
        {
            //max clicks erreicht
            $intMaxClicks = true;
        }
        
        return array($intMaxViews,$intMaxClicks);
    }
protected function getMaxViewsClicksStatus( &$Banner )
    {
        $intMaxViews = false;
        $intMaxClicks= false;
        
        if ($Banner['banner_until'] == 1
         && $Banner['banner_views_until'] != ''
         && $Banner['banner_views'] >= $Banner['banner_views_until']
           )
        {
            //max views erreicht
            $intMaxViews =  true;
        }
        
        if ($Banner['banner_until'] == 1
         && $Banner['banner_clicks_until'] !=''
         && $Banner['banner_clicks'] >= $Banner['banner_clicks_until']
           )
        {
            //max clicks erreicht
            $intMaxClicks = true;
        }
        
        return array($intMaxViews,$intMaxClicks);
    }
protected function getMaxViewsClicksStatus ( & $ Banner ) { $ intMaxViews = false ; $ intMaxClicks = false ; if ( $ Banner [ 'banner_until' ] == 1 && $ Banner [ 'banner_views_until' ] != '' && $ Banner [ 'banner_views' ] >= $ Banner [ 'banner_views_until' ] ) { //max views erreicht $ intMaxViews = true ; } if ( $ Banner [ 'banner_until' ] == 1 && $ Banner [ 'banner_clicks_until' ] != '' && $ Banner [ 'banner_clicks' ] >= $ Banner [ 'banner_clicks_until' ] ) { //max clicks erreicht $ intMaxClicks = true ; } return array ( $ intMaxViews , $ intMaxClicks ) ; }
Get status of maxviews and maxclicks

@param    array    $Banner
@return   array    array(bool $intMaxViews, bool $intMaxClicks)
Get status of maxviews and maxclicks