[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/XML/WBXML/DTD/ -> SyncML.php (source)

   1  <?php
   2  
   3  include_once 'XML/WBXML/DTD.php';
   4  
   5  /**
   6   * $Horde: framework/XML_WBXML/WBXML/DTD/SyncML.php,v 1.6.12.5 2006/03/11 09:55:12 jan Exp $
   7   *
   8   * From Binary XML Content Format Specification Version 1.3, 25 July 2001
   9   * found at http://www.wapforum.org
  10   *
  11   * Copyright 2003-2006 Anthony Mills <amills@pyramid6.com>
  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_SyncML 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, "Add"); // 0x00
  30          $this->setTag(0x06, "Alert"); // 0x00
  31          $this->setTag(0x07, "Archive"); // 0x00
  32          $this->setTag(0x08, "Atomic"); // 0x00
  33          $this->setTag(0x09, "Chal"); // 0x00
  34          $this->setTag(0x0a, "Cmd"); // 0x00
  35          $this->setTag(0x0b, "CmdID"); // 0x00
  36          $this->setTag(0x0c, "CmdRef"); // 0x00
  37          $this->setTag(0x0d, "Copy"); // 0x00
  38          $this->setTag(0x0e, "Cred"); // 0x00
  39          $this->setTag(0x0f, "Data"); // 0x00
  40          $this->setTag(0x10, "Delete"); // 0x00
  41          $this->setTag(0x11, "Exec"); // 0x00
  42          $this->setTag(0x12, "Final"); // 0x00
  43          $this->setTag(0x13, "Get"); // 0x00
  44          $this->setTag(0x14, "Item"); // 0x00
  45          $this->setTag(0x15, "Lang"); // 0x00
  46          $this->setTag(0x16, "LocName"); // 0x00
  47          $this->setTag(0x17, "LocURI"); // 0x00
  48          $this->setTag(0x18, "Map"); // 0x00
  49          $this->setTag(0x19, "MapItem"); // 0x00
  50          $this->setTag(0x1a, "Meta"); // 0x00
  51          $this->setTag(0x1b, "MsgID"); // 0x00
  52          $this->setTag(0x1c, "MsgRef"); // 0x00
  53          $this->setTag(0x1d, "NoResp"); // 0x00
  54          $this->setTag(0x1e, "NoResults"); // 0x00
  55          $this->setTag(0x1f, "Put"); // 0x00
  56          $this->setTag(0x20, "Replace"); // 0x00
  57          $this->setTag(0x21, "RespURI"); // 0x00
  58          $this->setTag(0x22, "Results"); // 0x00
  59          $this->setTag(0x23, "Search"); // 0x00
  60          $this->setTag(0x24, "Sequence"); // 0x00
  61          $this->setTag(0x25, "SessionID"); // 0x00
  62          $this->setTag(0x26, "SftDel"); // 0x00
  63          $this->setTag(0x27, "Source"); // 0x00
  64          $this->setTag(0x28, "SourceRef"); // 0x00
  65          $this->setTag(0x29, "Status"); // 0x00
  66          $this->setTag(0x2a, "Sync"); // 0x00
  67          $this->setTag(0x2b, "SyncBody"); // 0x00
  68          $this->setTag(0x2c, "SyncHdr"); // 0x00
  69          $this->setTag(0x2d, "SyncML"); // 0x00
  70          $this->setTag(0x2e, "Target"); // 0x00
  71          $this->setTag(0x2f, "TargetRef"); // 0x00
  72          $this->setTag(0x30, "Reserved for future use"); // 0x00
  73          $this->setTag(0x31, "VerDTD"); // 0x00
  74          $this->setTag(0x32, "VerProto"); // 0x00
  75          $this->setTag(0x33, "NumberOfChanged"); // 0x00
  76          $this->setTag(0x34, "MoreData"); // 0x00
  77  
  78          if ($this->version == 0) {
  79              $this->setCodePage(0, '-//SYNCML//DTD SyncML 1.0//EN', 'syncml:syncml1.0');
  80              $this->setCodePage(1, '-//SYNCML//DTD MetInf 1.0//EN', 'syncml:metinf1.0');
  81              $this->setURI('syncml:syncml1.0');
  82          } else {
  83              $this->setCodePage(0, '-//SYNCML//DTD SyncML 1.1//EN', 'syncml:syncml1.1');
  84              $this->setCodePage(1, '-//SYNCML//DTD MetInf 1.1//EN', 'syncml:metinf1.1');
  85              $this->setURI('syncml:syncml1.1');
  86          }
  87      }
  88  
  89  }


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7