1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
14: class Horde_Xml_Wbxml_Dtd_SyncMlMetInf extends Horde_Xml_Wbxml_Dtd
15: {
16: public function init()
17: {
18: 19: 20: 21: 22: 23:
24:
25: $this->setTag(0x05, "Anchor");
26: $this->setTag(0x06, "EMI");
27: $this->setTag(0x07, "Format");
28: $this->setTag(0x08, "FreeID");
29: $this->setTag(0x09, "FreeMem");
30: $this->setTag(0x0a, "Last");
31: $this->setTag(0x0b, "Mark");
32: $this->setTag(0x0c, "MaxMsgSize");
33: $this->setTag(0x15, "MaxObjSize");
34: $this->setTag(0x0d, "Mem");
35: $this->setTag(0x0e, "MetInf");
36: $this->setTag(0x0f, "Next");
37: $this->setTag(0x10, "NextNonce");
38: $this->setTag(0x11, "SharedMem");
39: $this->setTag(0x12, "Size");
40: $this->setTag(0x13, "Type");
41: $this->setTag(0x14, "Version");
42: $this->setTag(0x15, "MaxObjSize");
43: $this->setTag(0x16, "FieldLevel");
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: