OWeb/types/Header.php
public function getCode($id=""){

        switch($this->type){

            case Headers::javascript :
                $code = '<script id="'.$id.'" type="text/javascript" src="'.$this->code.'"></script>'."\n";
                break;
            case Headers::css :
                $code = '<link id="'.$id.'" href="'.$this->code.'" rel="stylesheet" type="text/css" />'."\n";
                break;
			case Headers::jsCode :
				 $code = '<script id="'.$id.'" type="text/javascript" >'."\n".$this->code."\n</script>\n\n";
				break;
			default :
                $code = $this->code;
        }
        return $code;
    }
public function getCode($id=""){

        switch($this->type){

            case Headers::javascript :
                $code = '<script id="'.$id.'" type="text/javascript" src="'.$this->code.'"></script>'."\n";
                break;
            case Headers::css :
                $code = '<link id="'.$id.'" href="'.$this->code.'" rel="stylesheet" type="text/css" />'."\n";
                break;
			case Headers::jsCode :
				 $code = '<script id="'.$id.'" type="text/javascript" >'."\n".$this->code."\n</script>\n\n";
				break;
			default :
                $code = $this->code;
        }
        return $code;
    }
public function getCode ( $ id = "" ) { switch ( $ this -> type ) { case Headers :: javascript : $ code = '<script id="' . $ id . '" type="text/javascript" src="' . $ this -> code . '"></script>' . "\n" ; break ; case Headers :: css : $ code = '<link id="' . $ id . '" href="' . $ this -> code . '" rel="stylesheet" type="text/css" />' . "\n" ; break ; case Headers :: jsCode : $ code = '<script id="' . $ id . '" type="text/javascript" >' . "\n" . $ this -> code . "\n</script>\n\n" ; break ; default : $ code = $ this -> code ; } return $ code ; }
Returns the string od this header.

@return type The code of the Header
Returns the string od this header .