[ Index ] |
|
Code source de Horde 3.1.3 |
1 <?php 2 3 include_once 'XML/WBXML/DTD.php'; 4 5 /** 6 * $Horde: framework/XML_WBXML/WBXML/DTD/SyncMLMetInf.php,v 1.4.12.5 2006/03/11 09:55:33 jan Exp $ 7 * 8 * Copyright 2003-2006 Anthony Mills <amills@pyramid6.com> 9 * 10 * From Binary XML Content Format Specification Version 1.3, 25 July 2001 11 * found at http://www.wapforum.org 12 * 13 * See the enclosed file COPYING for license information (LGPL). If you 14 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. 15 * 16 * @package XML_WBXML 17 */ 18 class XML_WBXML_DTD_SyncMLMetInf extends XML_WBXML_DTD { 19 20 function init() 21 { 22 /* this code table has been extracted from libwbxml 23 * (see http://libwbxml.aymerick.com/) by using 24 * 25 * grep '\"[^\"]*\", *0x.., 0x.. },' wbxml_tables.c 26 * | sed -e 's#^.*\"\([^\"]*\)\", *\(0x..\), \(0x..\) },.*$# \$this->setTag\(\3, \"\1\"\); // \2#g' 27 */ 28 29 $this->setTag(0x05, "Anchor"); // 0x01 30 $this->setTag(0x06, "EMI"); // 0x01 31 $this->setTag(0x07, "Format"); // 0x01 32 $this->setTag(0x08, "FreeID"); // 0x01 33 $this->setTag(0x09, "FreeMem"); // 0x01 34 $this->setTag(0x0a, "Last"); // 0x01 35 $this->setTag(0x0b, "Mark"); // 0x01 36 $this->setTag(0x0c, "MaxMsgSize"); // 0x01 37 $this->setTag(0x15, "MaxObjSize"); // 0x01 38 $this->setTag(0x0d, "Mem"); // 0x01 39 $this->setTag(0x0e, "MetInf"); // 0x01 40 $this->setTag(0x0f, "Next"); // 0x01 41 $this->setTag(0x10, "NextNonce"); // 0x01 42 $this->setTag(0x11, "SharedMem"); // 0x01 43 $this->setTag(0x12, "Size"); // 0x01 44 $this->setTag(0x13, "Type"); // 0x01 45 $this->setTag(0x14, "Version"); // 0x01 46 47 if ($this->version == 0) { 48 $this->setCodePage(0, '-//SYNCML//DTD SyncML 1.0//EN', 'syncml:syncml1.0'); 49 $this->setCodePage(1, '-//SYNCML//DTD MetInf 1.0//EN', 'syncml:metinf1.0'); 50 $this->setURI('syncml:metinf1.0'); 51 } else { 52 $this->setCodePage(0, '-//SYNCML//DTD SyncML 1.1//EN', 'syncml:syncml1.1'); 53 $this->setCodePage(1, '-//SYNCML//DTD MetInf 1.1//EN', 'syncml:metinf1.1'); 54 $this->setURI('syncml:metinf1.1'); 55 //$this->setURI('syncml:metinf'); // for some funny reason, libwbxml produces no :metinf1.1 here 56 } 57 } 58 59 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |