mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:59:39 +01:00
e667e168b4
svn merge ^/trunk/phpgwapi@27377 ^/branches/SyncML-1.2/phpgwapi .
93 lines
3.7 KiB
PHP
93 lines
3.7 KiB
PHP
<?php
|
|
|
|
include_once 'XML/WBXML/DTD.php';
|
|
|
|
/**
|
|
* From Binary XML Content Format Specification Version 1.3, 25 July 2001
|
|
* found at http://www.wapforum.org
|
|
*
|
|
* $Horde: framework/XML_WBXML/WBXML/DTD/SyncMLDevInf.php,v 1.4.12.8 2008/01/02 11:31:03 jan Exp $
|
|
*
|
|
* Copyright 2003-2008 The Horde Project (http://www.horde.org/)
|
|
*
|
|
* See the enclosed file COPYING for license information (LGPL). If you
|
|
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
|
|
*
|
|
* @author Anthony Mills <amills@pyramid6.com>
|
|
* @package XML_WBXML
|
|
*/
|
|
class XML_WBXML_DTD_SyncMLDevInf extends XML_WBXML_DTD {
|
|
|
|
function init()
|
|
{
|
|
/* this code table has been extracted from libwbxml
|
|
* (see http://libwbxml.aymerick.com/) by using
|
|
*
|
|
* grep '\"[^\"]*\", *0x.., 0x.. },' wbxml_tables.c
|
|
* | sed -e 's#^.*\"\([^\"]*\)\", *\(0x..\), \(0x..\) },.*$# \$this->setTag\(\3, \"\1\"\); // \2#g'
|
|
*/
|
|
|
|
#Horde::logMessage("XML_WBXML_DTD_SyncMLDevInf version=" . $this->version, __FILE__, __LINE__, PEAR_LOG_DEBUG);
|
|
|
|
$this->setTag(0x05, "CTCap"); // 0x00
|
|
$this->setTag(0x06, "CTType"); // 0x00
|
|
$this->setTag(0x07, "DataStore"); // 0x00
|
|
$this->setTag(0x08, "DataType"); // 0x00
|
|
$this->setTag(0x09, "DevID"); // 0x00
|
|
$this->setTag(0x0a, "DevInf"); // 0x00
|
|
$this->setTag(0x0b, "DevTyp"); // 0x00
|
|
$this->setTag(0x0c, "DisplayName"); // 0x00
|
|
$this->setTag(0x0d, "DSMem"); // 0x00
|
|
$this->setTag(0x0e, "Ext"); // 0x00
|
|
$this->setTag(0x0f, "FwV"); // 0x00
|
|
$this->setTag(0x10, "HwV"); // 0x00
|
|
$this->setTag(0x11, "Man"); // 0x00
|
|
$this->setTag(0x12, "MaxGUIDSize"); // 0x00
|
|
$this->setTag(0x13, "MaxID"); // 0x00
|
|
$this->setTag(0x14, "MaxMem"); // 0x00
|
|
$this->setTag(0x15, "Mod"); // 0x00
|
|
$this->setTag(0x16, "OEM"); // 0x00
|
|
$this->setTag(0x17, "ParamName"); // 0x00
|
|
$this->setTag(0x18, "PropName"); // 0x00
|
|
$this->setTag(0x19, "Rx"); // 0x00
|
|
$this->setTag(0x1a, "Rx-Pref"); // 0x00
|
|
$this->setTag(0x1b, "SharedMem"); // 0x00
|
|
$this->setTag(0x1c, "Size"); // 0x00
|
|
$this->setTag(0x1d, "SourceRef"); // 0x00
|
|
$this->setTag(0x1e, "SwV"); // 0x00
|
|
$this->setTag(0x1f, "SyncCap"); // 0x00
|
|
$this->setTag(0x20, "SyncType"); // 0x00
|
|
$this->setTag(0x21, "Tx"); // 0x00
|
|
$this->setTag(0x22, "Tx-Pref"); // 0x00
|
|
$this->setTag(0x23, "ValEnum"); // 0x00
|
|
$this->setTag(0x24, "VerCT"); // 0x00
|
|
$this->setTag(0x25, "VerDTD"); // 0x00
|
|
$this->setTag(0x26, "XNam"); // 0x00
|
|
$this->setTag(0x27, "XVal"); // 0x00
|
|
$this->setTag(0x28, "UTC"); // 0x00
|
|
$this->setTag(0x29, "SupportNumberOfChanges"); // 0x00
|
|
$this->setTag(0x2a, "SupportLargeObjs"); // 0x00
|
|
$this->setTag(0x2b, "Property"); // 0x00
|
|
$this->setTag(0x2c, "PropParam"); // 0x00
|
|
$this->setTag(0x2d, "MaxOccur"); // 0x00
|
|
$this->setTag(0x2e, "NoTruncate"); // 0x00
|
|
$this->setTag(0x30, "Filter-Rx"); // 0x00
|
|
$this->setTag(0x31, "FilterCap"); // 0x00
|
|
$this->setTag(0x32, "FilterKeyword"); // 0x00
|
|
$this->setTag(0x33, "FieldLevel"); // 0x00
|
|
$this->setTag(0x34, "SupportHierarchicalSync"); // 0x00
|
|
|
|
if ($this->version == 1) {
|
|
$this->setCodePage(0, DPI_DTD_DEVINF_1_1, 'syncml:devinf1.1');
|
|
$this->setURI('syncml:devinf1.1');
|
|
} elseif ($this->version == 2) {
|
|
$this->setCodePage(0, DPI_DTD_DEVINF_1_2, 'syncml:devinf1.2');
|
|
$this->setURI('syncml:devinf1.2');
|
|
} else {
|
|
$this->setCodePage(0, DPI_DTD_DEVINF_1_0, 'syncml:devinf1.0');
|
|
$this->setURI('syncml:devinf1.0');
|
|
}
|
|
}
|
|
|
|
}
|