public function get($name, $groups = null, $flag = null)
    {
        $found = null;

        foreach ($this->settings as $setting) {
            if (($setting->getName() === $name) && $setting->matchesGroup($groups) && $setting->matchesFlag($flag)) {
                return $setting;
            }
        }

        return $found;
    }
public function get($name, $groups = null, $flag = null)
    {
        $found = null;

        foreach ($this->settings as $setting) {
            if (($setting->getName() === $name) && $setting->matchesGroup($groups) && $setting->matchesFlag($flag)) {
                return $setting;
            }
        }

        return $found;
    }
public function get ( $ name , $ groups = null , $ flag = null ) { $ found = null ; foreach ( $ this -> settings as $ setting ) { if ( ( $ setting -> getName ( ) === $ name ) && $ setting -> matchesGroup ( $ groups ) && $ setting -> matchesFlag ( $ flag ) ) { return $ setting ; } } return $ found ; }
Returns the first setting from the loaded cache that matches the given criterias.

@param string $name key of wanted setting
@param mixed $groups group name of setting, default is null and matches always
@param integer $flag setting type to match, default is null and matches always

@return ISetting|null matching setting
Returns the first setting from the loaded cache that matches the given criterias .