VersionControl_SVN
[ class tree: VersionControl_SVN ] [ index: VersionControl_SVN ] [ all elements ]

Source for file Status.php

Documentation is available at Status.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. /**
  4.  * Implements reading of SVN status XML.
  5.  *
  6.  * +----------------------------------------------------------------------+
  7.  * | This LICENSE is in the BSD license style.                            |
  8.  * | http://www.opensource.org/licenses/bsd-license.php                   |
  9.  * |                                                                      |
  10.  * | Redistribution and use in source and binary forms, with or without   |
  11.  * | modification, are permitted provided that the following conditions   |
  12.  * | are met:                                                             |
  13.  * |                                                                      |
  14.  * |  * Redistributions of source code must retain the above copyright    |
  15.  * |    notice, this list of conditions and the following disclaimer.     |
  16.  * |                                                                      |
  17.  * |  * Redistributions in binary form must reproduce the above           |
  18.  * |    copyright notice, this list of conditions and the following       |
  19.  * |    disclaimer in the documentation and/or other materials provided   |
  20.  * |    with the distribution.                                            |
  21.  * |                                                                      |
  22.  * |  * Neither the name of Clay Loveless nor the names of contributors   |
  23.  * |    may be used to endorse or promote products derived from this      |
  24.  * |    software without specific prior written permission.               |
  25.  * |                                                                      |
  26.  * | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  |
  27.  * | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT    |
  28.  * | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS    |
  29.  * | FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE      |
  30.  * | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,  |
  31.  * | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
  32.  * | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;     |
  33.  * | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER     |
  34.  * | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT   |
  35.  * | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN    |
  36.  * | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE      |
  37.  * | POSSIBILITY OF SUCH DAMAGE.                                          |
  38.  * +----------------------------------------------------------------------+
  39.  *
  40.  * PHP version 5
  41.  *
  42.  * @category  VersionControl
  43.  * @package   VersionControl_SVN
  44.  * @author    Alexander Opitz <opitz.alexander@gmail.com>
  45.  * @copyright 2012 Alexander Opitz
  46.  * @license   http://www.opensource.org/licenses/bsd-license.php BSD License
  47.  * @link      http://pear.php.net/package/VersionControl_SVN
  48.  */
  49.  
  50. require_once 'VersionControl/SVN/Parser/XML.php';
  51.  
  52. /**
  53.  * Class VersionControl_SVN_Parser_Status - XML Parser for Subversion Status output
  54.  *
  55.  * @category VersionControl
  56.  * @package  VersionControl_SVN
  57.  * @author   Alexander Opitz <opitz.alexander@gmail.com>
  58.  * @license  http://www.opensource.org/licenses/bsd-license.php BSD License
  59.  * @version  0.5.1
  60.  * @link     http://pear.php.net/package/VersionControl_SVN
  61.  */
  62. {
  63.     /**
  64.      * @var array $xmlPathConfig The XML configuration (like a DTD).
  65.      */
  66.     protected $xmlPathConfig = array(
  67.         'status' => array(
  68.             'path' => array(
  69.                 'target' => array(
  70.                     'attribute' => array('path'),
  71.                     'quantifier' => '+',
  72.                     'path' => array(
  73.                         'entry' => array(
  74.                             'attribute' => array('path'),
  75.                             'quantifier' => '+',
  76.                             'path' => array(
  77.                                 'wc-status' => array(
  78.                                     'attribute' => array('item''revision''props'),
  79.                                     'path' => array(
  80.                                         'commit' => array(
  81.                                             'attribute' => array('revision'),
  82.                                             'path' => array(
  83.                                                 'author' => array(
  84.                                                     'config' => 'string',
  85.                                                 ),
  86.                                                 'date' => array(
  87.                                                     'config' => 'string',
  88.                                                 ),
  89.                                             ),
  90.                                         ),
  91.                                     ),
  92.                                 ),
  93.                                 'repos-status' => array(
  94.                                     'attribute' => array('item''props'),
  95.                                 ),
  96.                             ),
  97.                         ),
  98.                     ),
  99.                 ),
  100.             ),
  101.         ),
  102.     );
  103. }
  104. ?>

Documentation generated on Sat, 09 Feb 2013 12:30:13 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.