public static function activate_state($state)
    {
        foreach (self::variants() as $variant => $instance) {
            if (isset($state[$variant]) && $instance->appliesToEnvironment()) {
                $instance->activateState($state[$variant]);
            }
        }
    }
public static function activate_state($state)
    {
        foreach (self::variants() as $variant => $instance) {
            if (isset($state[$variant]) && $instance->appliesToEnvironment()) {
                $instance->activateState($state[$variant]);
            }
        }
    }
public static function activate_state ( $ state ) { foreach ( self :: variants ( ) as $ variant => $ instance ) { if ( isset ( $ state [ $ variant ] ) && $ instance -> appliesToEnvironment ( ) ) { $ instance -> activateState ( $ state [ $ variant ] ) ; } } }
Activate all the states in the passed argument
@static
@param array $state A set of (string)$variantClass => (any)$state pairs , e.g. as returned by
SearchVariant::current_state()
@return void
Activate all the states in the passed argument