public static function isUniqueVisitorsEnabled($periodLabel)
    {
        $generalSettings = Config::getInstance()->General;

        $settingName = "enable_processing_unique_visitors_$periodLabel";
        $result = !empty($generalSettings[$settingName]) && $generalSettings[$settingName] == 1;

        // check enable_processing_unique_visitors_year_and_range for backwards compatibility
        if (($periodLabel == 'year' || $periodLabel == 'range')
            && isset($generalSettings['enable_processing_unique_visitors_year_and_range'])
        ) {
            $result |= $generalSettings['enable_processing_unique_visitors_year_and_range'] == 1;
        }

        return $result;
    }
public static function isUniqueVisitorsEnabled($periodLabel)
    {
        $generalSettings = Config::getInstance()->General;

        $settingName = "enable_processing_unique_visitors_$periodLabel";
        $result = !empty($generalSettings[$settingName]) && $generalSettings[$settingName] == 1;

        // check enable_processing_unique_visitors_year_and_range for backwards compatibility
        if (($periodLabel == 'year' || $periodLabel == 'range')
            && isset($generalSettings['enable_processing_unique_visitors_year_and_range'])
        ) {
            $result |= $generalSettings['enable_processing_unique_visitors_year_and_range'] == 1;
        }

        return $result;
    }
public static function isUniqueVisitorsEnabled ( $ periodLabel ) { $ generalSettings = Config :: getInstance ( ) -> General ; $ settingName = "enable_processing_unique_visitors_$periodLabel" ; $ result = ! empty ( $ generalSettings [ $ settingName ] ) && $ generalSettings [ $ settingName ] == 1 ; // check enable_processing_unique_visitors_year_and_range for backwards compatibility if ( ( $ periodLabel == 'year' || $ periodLabel == 'range' ) && isset ( $ generalSettings [ 'enable_processing_unique_visitors_year_and_range' ] ) ) { $ result |= $ generalSettings [ 'enable_processing_unique_visitors_year_and_range' ] == 1 ; } return $ result ; }
Returns true if unique visitors should be processed for the given period type.

Unique visitor processing is controlled by the `[General] enable_processing_unique_visitors_...`
INI config options. By default, unique visitors are processed only for day/week/month periods.

@param string $periodLabel `"day"`, `"week"`, `"month"`, `"year"` or `"range"`
@return bool
@api
Returns true if unique visitors should be processed for the given period type .