1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
14: class Horde_Xml_Wbxml_Dtd_SyncMl extends Horde_Xml_Wbxml_Dtd
15: {
16: public function init()
17: {
18: 19: 20: 21: 22: 23:
24:
25: $this->setTag(0x05, "Add");
26: $this->setTag(0x06, "Alert");
27: $this->setTag(0x07, "Archive");
28: $this->setTag(0x08, "Atomic");
29: $this->setTag(0x09, "Chal");
30: $this->setTag(0x0a, "Cmd");
31: $this->setTag(0x0b, "CmdID");
32: $this->setTag(0x0c, "CmdRef");
33: $this->setTag(0x0d, "Copy");
34: $this->setTag(0x0e, "Cred");
35: $this->setTag(0x0f, "Data");
36: $this->setTag(0x10, "Delete");
37: $this->setTag(0x11, "Exec");
38: $this->setTag(0x12, "Final");
39: $this->setTag(0x13, "Get");
40: $this->setTag(0x14, "Item");
41: $this->setTag(0x15, "Lang");
42: $this->setTag(0x16, "LocName");
43: $this->setTag(0x17, "LocURI");
44: $this->setTag(0x18, "Map");
45: $this->setTag(0x19, "MapItem");
46: $this->setTag(0x1a, "Meta");
47: $this->setTag(0x1b, "MsgID");
48: $this->setTag(0x1c, "MsgRef");
49: $this->setTag(0x1d, "NoResp");
50: $this->setTag(0x1e, "NoResults");
51: $this->setTag(0x1f, "Put");
52: $this->setTag(0x20, "Replace");
53: $this->setTag(0x21, "RespURI");
54: $this->setTag(0x22, "Results");
55: $this->setTag(0x23, "Search");
56: $this->setTag(0x24, "Sequence");
57: $this->setTag(0x25, "SessionID");
58: $this->setTag(0x26, "SftDel");
59: $this->setTag(0x27, "Source");
60: $this->setTag(0x28, "SourceRef");
61: $this->setTag(0x29, "Status");
62: $this->setTag(0x2a, "Sync");
63: $this->setTag(0x2b, "SyncBody");
64: $this->setTag(0x2c, "SyncHdr");
65: $this->setTag(0x2d, "SyncML");
66: $this->setTag(0x2e, "Target");
67: $this->setTag(0x2f, "TargetRef");
68: $this->setTag(0x30, "Reserved for future use");
69: $this->setTag(0x31, "VerDTD");
70: $this->setTag(0x32, "VerProto");
71: $this->setTag(0x33, "NumberOfChanges");
72: $this->setTag(0x34, "MoreData");
73: $this->setTag(0x35, "Field");
74: $this->setTag(0x36, "Filter");
75: $this->setTag(0x37, "Record");
76: $this->setTag(0x38, "FilterType");
77: $this->setTag(0x39, "SourceParent");
78: $this->setTag(0x3a, "TargetParent");
79: $this->setTag(0x3b, "Move");
80: $this->setTag(0x3c, "Correlator");
81:
82: if ($this->version == 1) {
83: $this->setCodePage(0, Horde_Xml_Wbxml_Dtd::SYNCML_1_1, 'syncml:syncml1.1');
84: $this->setCodePage(1, Horde_Xml_Wbxml_Dtd::METINF_1_1, 'syncml:metinf1.1');
85: $this->setURI('syncml:syncml1.1');
86: } elseif ($this->version == 2) {
87: $this->setCodePage(0, Horde_Xml_Wbxml_Dtd::SYNCML_1_2, 'syncml:syncml1.2');
88: $this->setCodePage(1, Horde_Xml_Wbxml_Dtd::METINF_1_2, 'syncml:metinf1.2');
89: $this->setURI('syncml:syncml1.2');
90: } else {
91: $this->setCodePage(0, Horde_Xml_Wbxml_Dtd::SYNCML_1_0, 'syncml:syncml1.0');
92: $this->setCodePage(1, Horde_Xml_Wbxml_Dtd::METINF_1_0, 'syncml:metinf1.0');
93: $this->setURI('syncml:syncml1.0');
94: }
95: }
96: }
97: