public static function set($key, $value, $preferGlobal = false)
    {
        if (!isset(self::$_config[$key])) {
            return false;
        }

        if (!$preferGlobal && self::$_CurrentHTMLInstance && isset(self::$_CurrentHTMLInstance->$key)) {
            self::s3t(self::$_CurrentHTMLInstance->$key, $value);
        } else {
            if (class_exists('Xiphe\THEMASTER\core\THE')
                && class_exists(TM\THE::SETTINGS)
            ) {
                $prev = TM\THEWPSETTINGS::sGet_setting($key, XIPHE_HTML_TEXTID);
                self::s3t($prev, $value);
                TM\THESETTINGS::sSet_setting($key, XIPHE_HTML_TEXTID, $prev);
            } else {
                self::s3t(self::$_config[$key], $value);
            }
        }

        return true;
    }
public static function set($key, $value, $preferGlobal = false)
    {
        if (!isset(self::$_config[$key])) {
            return false;
        }

        if (!$preferGlobal && self::$_CurrentHTMLInstance && isset(self::$_CurrentHTMLInstance->$key)) {
            self::s3t(self::$_CurrentHTMLInstance->$key, $value);
        } else {
            if (class_exists('Xiphe\THEMASTER\core\THE')
                && class_exists(TM\THE::SETTINGS)
            ) {
                $prev = TM\THEWPSETTINGS::sGet_setting($key, XIPHE_HTML_TEXTID);
                self::s3t($prev, $value);
                TM\THESETTINGS::sSet_setting($key, XIPHE_HTML_TEXTID, $prev);
            } else {
                self::s3t(self::$_config[$key], $value);
            }
        }

        return true;
    }
public static function set ( $ key , $ value , $ preferGlobal = false ) { if ( ! isset ( self :: $ _config [ $ key ] ) ) { return false ; } if ( ! $ preferGlobal && self :: $ _CurrentHTMLInstance && isset ( self :: $ _CurrentHTMLInstance -> $ key ) ) { self :: s3t ( self :: $ _CurrentHTMLInstance -> $ key , $ value ) ; } else { if ( class_exists ( 'Xiphe\THEMASTER\core\THE' ) && class_exists ( TM \ THE :: SETTINGS ) ) { $ prev = TM \ THEWPSETTINGS :: sGet_setting ( $ key , XIPHE_HTML_TEXTID ) ; self :: s3t ( $ prev , $ value ) ; TM \ THESETTINGS :: sSet_setting ( $ key , XIPHE_HTML_TEXTID , $ prev ) ; } else { self :: s3t ( self :: $ _config [ $ key ] , $ value ) ; } } return true ; }
Changes a global configuration.

@param string  $key          the settings name
@param mixed   $value        the settings value
@param boolean $preferGlobal Eliminates the instance setting from hierarchy.

@return boolean weather or not the setting was set.
Changes a global configuration .