public static function getPurgeDataSettings()
    {
        $settings = array();

        // load settings from ini config
        $config = PiwikConfig::getInstance();
        foreach (self::$purgeDataOptions as $configKey => $configSection) {
            $values = $config->$configSection;
            $settings[$configKey] = $values[$configKey];
        }

        if (!Controller::isDataPurgeSettingsEnabled()) {
            return $settings;
        }

        // load the settings for the data purging settings
        foreach (self::$purgeDataOptions as $configName => $configSection) {
            $value = Option::get($configName);
            if ($value !== false) {
                $settings[$configName] = $value;
            }
        }

        return $settings;
    }
public static function getPurgeDataSettings()
    {
        $settings = array();

        // load settings from ini config
        $config = PiwikConfig::getInstance();
        foreach (self::$purgeDataOptions as $configKey => $configSection) {
            $values = $config->$configSection;
            $settings[$configKey] = $values[$configKey];
        }

        if (!Controller::isDataPurgeSettingsEnabled()) {
            return $settings;
        }

        // load the settings for the data purging settings
        foreach (self::$purgeDataOptions as $configName => $configSection) {
            $value = Option::get($configName);
            if ($value !== false) {
                $settings[$configName] = $value;
            }
        }

        return $settings;
    }
public static function getPurgeDataSettings ( ) { $ settings = array ( ) ; // load settings from ini config $ config = PiwikConfig :: getInstance ( ) ; foreach ( self :: $ purgeDataOptions as $ configKey => $ configSection ) { $ values = $ config -> $ configSection ; $ settings [ $ configKey ] = $ values [ $ configKey ] ; } if ( ! Controller :: isDataPurgeSettingsEnabled ( ) ) { return $ settings ; } // load the settings for the data purging settings foreach ( self :: $ purgeDataOptions as $ configName => $ configSection ) { $ value = Option :: get ( $ configName ) ; if ( $ value !== false ) { $ settings [ $ configName ] = $ value ; } } return $ settings ; }
Returns the settings for the data purging feature.

@return array
Returns the settings for the data purging feature .