[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 3 include_once 'XML/WBXML/DTD/SyncML.php'; 4 include_once 'XML/WBXML/DTD/SyncMLMetInf.php'; 5 include_once 'XML/WBXML/DTD/SyncMLDevInf.php'; 6 7 /** 8 * $Horde: framework/XML_WBXML/WBXML/DTDManager.php,v 1.7 2006/01/01 21:10:25 jan Exp $ 9 * 10 * Copyright 2003-2006 Anthony Mills <amills@pyramid6.com> 11 * 12 * See the enclosed file COPYING for license information (LGPL). If you 13 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. 14 * 15 * From Binary XML Content Format Specification Version 1.3, 25 July 16 * 2001 found at http://www.wapforum.org 17 * 18 * @package XML_WBXML 19 */ 20 class XML_WBXML_DTDManager { 21 22 var $_strDTD = array(); 23 var $_strDTDURI = array(); 24 25 function XML_WBXML_DTDManager() 26 { 27 $this->registerDTD('-//SYNCML//DTD SyncML 1.0//EN', 'syncml:syncml1.0', new XML_WBXML_DTD_SyncML(0)); 28 $this->registerDTD('-//SYNCML//DTD SyncML 1.1//EN', 'syncml:syncml1.1', new XML_WBXML_DTD_SyncML(1)); 29 30 $this->registerDTD('-//SYNCML//DTD MetInf 1.0//EN', 'syncml:metinf', new XML_WBXML_DTD_SyncMLMetInf(0)); 31 $this->registerDTD('-//SYNCML//DTD MetInf 1.1//EN', 'syncml:metinf1.1', new XML_WBXML_DTD_SyncMLMetInf(1)); 32 33 $this->registerDTD('-//SYNCML//DTD DevInf 1.0//EN', 'syncml:devinf', new XML_WBXML_DTD_SyncMLDevInf(0)); 34 $this->registerDTD('-//SYNCML//DTD DevInf 1.1//EN', 'syncml:devinf1.1', new XML_WBXML_DTD_SyncMLDevInf(1)); 35 } 36 37 function getInstance($publicIdentifier) 38 { 39 return isset($this->_strDTD[$publicIdentifier]) ? $this->_strDTD[$publicIdentifier] : null; 40 } 41 42 function getInstanceURI($uri) 43 { 44 $uri = strtolower($uri); 45 return isset($this->_strDTDURI[$uri]) ? $this->_strDTDURI[$uri] : null; 46 } 47 48 function registerDTD($publicIdentifier, $uri, &$dtd) 49 { 50 $dtd->setDPI($publicIdentifier); 51 52 $this->_strDTD[$publicIdentifier] = $dtd; 53 $this->_strDTDURI[strtolower($uri)] = $dtd; 54 } 55 56 }
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 |