private function isSetConfigVariable($var)
    {
        if (preg_match("/^SW_/", $var)) {
            $var = strtolower(preg_replace("/SW_/", "", $var));
        }
        if (defined("SW_" . strtoupper($var))) {
            return true;
        }

        if (isset($this->variables["config"][$var])) {
            return true;
        } else {
            return false;
        }
    }
private function isSetConfigVariable($var)
    {
        if (preg_match("/^SW_/", $var)) {
            $var = strtolower(preg_replace("/SW_/", "", $var));
        }
        if (defined("SW_" . strtoupper($var))) {
            return true;
        }

        if (isset($this->variables["config"][$var])) {
            return true;
        } else {
            return false;
        }
    }
private function isSetConfigVariable ( $ var ) { if ( preg_match ( "/^SW_/" , $ var ) ) { $ var = strtolower ( preg_replace ( "/SW_/" , "" , $ var ) ) ; } if ( defined ( "SW_" . strtoupper ( $ var ) ) ) { return true ; } if ( isset ( $ this -> variables [ "config" ] [ $ var ] ) ) { return true ; } else { return false ; } }
Check if a config variable is defined

@param mixed $var Config variable name

@return bool
Check if a config variable is defined