protected function getFiltered(array $all_settings = array(), $groups = null, $flag = null)
    {
        $settings = array();

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

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

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

        return $settings;
    }
protected function getFiltered ( array $ all_settings = array ( ) , $ groups = null , $ flag = null ) { $ settings = array ( ) ; foreach ( $ all_settings as $ setting ) { if ( $ setting -> matchesGroup ( $ groups ) && $ setting -> matchesFlag ( $ flag ) ) { $ settings [ ] = $ setting ; } } return $ settings ; }
Returns all settings from the given array that match the groups and flag.

@param array $all_settings array of ISetting implementing classes
@param string $groups group names of settings to return
@param integer $flag flag value the settings should belong to

@return array of entries from all_settings that match the given groups and flag
Returns all settings from the given array that match the groups and flag .