phpDocumentor html
[ class tree: html ] [ index: html ] [ all elements ]

Source for file doctype.class.php

Documentation is available at doctype.class.php

  1. <?php
  2.  
  3.     /**
  4.      * Declare le doctype a utilier
  5.      *
  6.      * @package html
  7.      * @author Alain Defrance
  8.      */
  9.     class wpmDoctype
  10.     {
  11.         /**
  12.          * Définit l'utilisation de HTML 4.01 Strict
  13.          *
  14.          */
  15.         static public function html401Strict()
  16.         {
  17.             echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  18.        "http://www.w3.org/TR/html4/strict.dtd">';
  19.         }
  20.         
  21.         static public function html401Transitional()
  22.         {
  23.             echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  24.        "http://www.w3.org/TR/html4/loose.dtd">';
  25.         }
  26.         
  27.         static public function html401Frameset()
  28.         {
  29.             echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
  30.        "http://www.w3.org/TR/html4/frameset.dtd">';
  31.         }
  32.         
  33.         static public function xhtml10Strict()
  34.         {
  35.             echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  36.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
  37.         }
  38.         
  39.         static public function xhtml10Transitional()
  40.         {
  41.             echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  42.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
  43.         }
  44.         
  45.         static public function xhtml10Frameset()
  46.         {
  47.             echo '<!DOCTYPEhtml PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
  48.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">';
  49.         }
  50.         
  51.         static public function xhtml11()
  52.         {
  53.             echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
  54.        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">';
  55.         }
  56.     }
  57.  
  58. ?>

Documentation generated on Fri, 04 Jul 2008 23:38:40 +0200 by phpDocumentor 1.4.0a2