[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /** 3 * $Horde: framework/XML_WBXML/WBXML/DTD.php,v 1.8 2006/01/01 21:10:25 jan Exp $ 4 * 5 * From Binary XML Content Format Specification Version 1.3, 25 July 2001 6 * found at http://www.wapforum.org 7 * 8 * Copyright 2003-2006 Anthony Mills <amills@pyramid6.com> 9 * 10 * See the enclosed file COPYING for license information (LGPL). If you 11 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. 12 * 13 * @package XML_WBXML 14 */ 15 class XML_WBXML_DTD { 16 17 var $version; 18 var $intTags; 19 var $intAttributes; 20 var $strTags; 21 var $strAttributes; 22 var $intCodePages; 23 var $strCodePages; 24 var $strCodePagesURI; 25 var $URI; 26 var $XMLNS; 27 var $DPI; 28 29 function XML_WBXML_DTD($v) 30 { 31 $this->version = $v; 32 $this->init(); 33 } 34 35 function init() 36 { 37 } 38 39 function setAttribute($intAttribute, $strAttribute) 40 { 41 $this->strAttributes[$strAttribute] = $intAttribute; 42 $this->intAttributes[$intAttribute] = $strAttribute; 43 } 44 45 function setTag($intTag, $strTag) 46 { 47 $this->strTags[$strTag] = $intTag; 48 $this->intTags[$intTag] = $strTag; 49 } 50 51 function setCodePage($intCodePage, $strCodePage, $strCodePageURI) 52 { 53 $this->strCodePagesURI[$strCodePageURI] = $intCodePage; 54 $this->strCodePages[$strCodePage] = $intCodePage; 55 $this->intCodePages[$intCodePage] = $strCodePage; 56 } 57 58 function toTagStr($tag) 59 { 60 return isset($this->intTags[$tag]) ? $this->intTags[$tag] : false; 61 } 62 63 function toAttributeStr($attribute) 64 { 65 return isset($this->intTags[$attribute]) ? $this->intTags[$attribute] : false; 66 } 67 68 function toCodePageStr($codePage) 69 { 70 return isset($this->intCodePages[$codePage]) ? $this->intCodePages[$codePage] : false; 71 } 72 73 function toTagInt($tag) 74 { 75 return isset($this->strTags[$tag]) ? $this->strTags[$tag] : false; 76 } 77 78 function toAttributeInt($attribute) 79 { 80 return isset($this->strAttributes[$attribute]) ? $this->strAttributes[$attribute] : false; 81 } 82 83 function toCodePageInt($codePage) 84 { 85 return isset($this->strCodePages[$codePage]) ? $this->strCodePages[$codePage] : false; 86 } 87 88 function toCodePageURI($uri) 89 { 90 $uri = strtolower($uri); 91 $ret = isset($this->strCodePagesURI[$uri]) ? $this->strCodePagesURI[$uri] : false; 92 93 return $ret; 94 } 95 96 /** 97 * Getter for property version. 98 * @return Value of property version. 99 */ 100 function getVersion() 101 { 102 return $this->version; 103 } 104 105 /** 106 * Setter for property version. 107 * @param integer $v New value of property version. 108 */ 109 function setVersion($v) 110 { 111 $this->version = $v; 112 } 113 114 /** 115 * Getter for property URI. 116 * @return Value of property URI. 117 */ 118 function getURI() 119 { 120 return $this->URI; 121 } 122 123 /** 124 * Setter for property URI. 125 * @param string $u New value of property URI. 126 */ 127 function setURI($u) 128 { 129 $this->URI = $u; 130 } 131 132 /** 133 * Getter for property DPI. 134 * @return Value of property DPI. 135 */ 136 function getDPI() 137 { 138 return $this->DPI; 139 } 140 141 /** 142 * Setter for property DPI. 143 * @param DPI New value of property DPI. 144 */ 145 function setDPI($d) 146 { 147 $this->DPI = $d; 148 } 149 150 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |