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;
    }