CAdvBanner :: CalculateRotationProgress: Bitrix method

      
<?php 
//  CAdvBanner :: CalculateRotationProgress()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:3983

    
public static function CalculateRotationProgress($arBanner)
    {
        if (!isset(
$arBanner["MAX_SHOW_COUNT"]) or !isset($arBanner["SHOW_COUNT"]) or
            
intval($arBanner["MAX_SHOW_COUNT"])==0) return 0;
        return 
intval($arBanner["SHOW_COUNT"])/intval($arBanner["MAX_SHOW_COUNT"]);
    }