Overview

Packages

  • Xml
    • Wbxml

Classes

  • Horde_Xml_Wbxml
  • Horde_Xml_Wbxml_ContentHandler
  • Horde_Xml_Wbxml_Decoder
  • Horde_Xml_Wbxml_Dtd
  • Horde_Xml_Wbxml_Dtd_SyncMl
  • Horde_Xml_Wbxml_Dtd_SyncMlDevInf
  • Horde_Xml_Wbxml_Dtd_SyncMlMetInf
  • Horde_Xml_Wbxml_DtdManager
  • Horde_Xml_Wbxml_Encoder
  • Horde_Xml_Wbxml_Exception
  • Horde_Xml_Wbxml_HashTable
  • Horde_Xml_Wbxml_LifoQueue
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * From Binary XML Content Format Specification Version 1.3, 25 July 2001
 4:  * found at http://www.wapforum.org
 5:  *
 6:  * Copyright 2003-2012 Horde LLC (http://www.horde.org/)
 7:  *
 8:  * See the enclosed file COPYING for license information (LGPL). If you
 9:  * did not receive this file, see http://www.horde.org/licenses/lgpl21.
10:  *
11:  * @author  Anthony Mills <amills@pyramid6.com>
12:  * @package Xml_Wbxml
13:  */
14: class Horde_Xml_Wbxml_Dtd_SyncMlMetInf extends Horde_Xml_Wbxml_Dtd
15: {
16:     public function init()
17:     {
18:         /* this code table has been extracted from libwbxml
19:          * (see http://libwbxml.aymerick.com/) by using
20:          *
21:          * grep '\"[^\"]*\", *0x.., 0x.. },' wbxml_tables.c
22:          * | sed -e 's#^.*\"\([^\"]*\)\", *\(0x..\), \(0x..\) },.*$#        \$this->setTag\(\3, \"\1\"\); // \2#g'
23:          */
24: 
25:         $this->setTag(0x05, "Anchor"); // 0x01
26:         $this->setTag(0x06, "EMI"); // 0x01
27:         $this->setTag(0x07, "Format"); // 0x01
28:         $this->setTag(0x08, "FreeID"); // 0x01
29:         $this->setTag(0x09, "FreeMem"); // 0x01
30:         $this->setTag(0x0a, "Last"); // 0x01
31:         $this->setTag(0x0b, "Mark"); // 0x01
32:         $this->setTag(0x0c, "MaxMsgSize"); // 0x01
33:         $this->setTag(0x15, "MaxObjSize"); // 0x01
34:         $this->setTag(0x0d, "Mem"); // 0x01
35:         $this->setTag(0x0e, "MetInf"); // 0x01
36:         $this->setTag(0x0f, "Next"); // 0x01
37:         $this->setTag(0x10, "NextNonce"); // 0x01
38:         $this->setTag(0x11, "SharedMem"); // 0x01
39:         $this->setTag(0x12, "Size"); // 0x01
40:         $this->setTag(0x13, "Type"); // 0x01
41:         $this->setTag(0x14, "Version"); // 0x01
42:         $this->setTag(0x15, "MaxObjSize"); // 0x01
43:         $this->setTag(0x16, "FieldLevel"); // 0x01
44: 
45:         if ($this->version == 1) {
46:             $this->setCodePage(0, Horde_Xml_Wbxml_Dtd::SYNCML_1_1, 'syncml:syncml1.1');
47:             $this->setCodePage(1, Horde_Xml_Wbxml_Dtd::METINF_1_1, 'syncml:metinf1.1');
48:             $this->setURI('syncml:metinf1.1');
49:         } elseif ($this->version == 2) {
50:             $this->setCodePage(0, Horde_Xml_Wbxml_Dtd::SYNCML_1_2, 'syncml:syncml1.2');
51:             $this->setCodePage(1, Horde_Xml_Wbxml_Dtd::METINF_1_2, 'syncml:metinf1.2');
52:             $this->setURI('syncml:metinf1.2');
53:         } else {
54:             $this->setCodePage(0, Horde_Xml_Wbxml_Dtd::SYNCML_1_0, 'syncml:syncml1.0');
55:             $this->setCodePage(1, Horde_Xml_Wbxml_Dtd::METINF_1_0, 'syncml:metinf1.0');
56:             $this->setURI('syncml:metinf1.0');
57:         }
58:     }
59: }
60: 
API documentation generated by ApiGen