1 |
<?php |
2 |
|
3 |
/** |
4 |
* This contains the WMLDocumentClass |
5 |
* |
6 |
* $Id: WMLDocumentClass.inc,v 1.5 2002/11/01 22:37:42 hemna Exp $ |
7 |
* |
8 |
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
9 |
* @package phpHtmlLib |
10 |
* |
11 |
*/ |
12 |
|
13 |
|
14 |
/** |
15 |
* |
16 |
* This class lets you build a complete |
17 |
* WML document and render it |
18 |
* |
19 |
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
20 |
* @package phpHtmlLib |
21 |
*/ |
22 |
class WMLDocumentClass extends XMLDocumentClass { |
23 |
|
24 |
function WMLDocumentClass() { |
25 |
$this->set_doctype_source("PUBLIC"); |
26 |
XMLDocumentClass::XMLDocumentClass("wml", |
27 |
"-//WAPFORUM//DTD WML 1.1//EN"); |
28 |
$this->set_doctype_link("http://www.wapforum.org/DTD/wml_1.1.xml"); |
29 |
|
30 |
//by default we want to output the |
31 |
//http Content-type header |
32 |
$this->show_http_header(TRUE); |
33 |
|
34 |
//set the correct content-type |
35 |
$this->set_http_content_type( "text/vnd.wap.wml" ); |
36 |
} |
37 |
} |
38 |
?> |