src/Environaut/Report/Results/Result.php
protected function getFilteredAsArray(array $all_settings, $groups = null, $flag = null)
    {
        $settings = array();

        foreach ($all_settings as $setting) {
            if ($setting->matchesGroup($groups) && $setting->matchesFlag($flag)) {
                $settings[] = $setting->toArray();
            }
        }

        return $settings;
    }
protected function getFilteredAsArray(array $all_settings, $groups = null, $flag = null)
    {
        $settings = array();

        foreach ($all_settings as $setting) {
            if ($setting->matchesGroup($groups) && $setting->matchesFlag($flag)) {
                $settings[] = $setting->toArray();
            }
        }

        return $settings;
    }
Returns all or just the matching settings of the given groups as an associative array.

@param array $all_settings array of ISetting implementing setting instances
@param string $group name of group to filter given settings for
@param integer $flag flag value the setting must be matching

@return array with associative arrays (for each setting)