Source for file _parse_propfind.php
Documentation is available at _parse_propfind.php
+----------------------------------------------------------------------+
| Copyright (c) 2002-2007 Christian Stocker, Hartmut Holzgraefe |
| Redistribution and use in source and binary forms, with or without |
| modification, are permitted provided that the following conditions |
| 1. Redistributions of source code must retain the above copyright |
| notice, this list of conditions and the following disclaimer. |
| 2. Redistributions in binary form must reproduce the above copyright |
| notice, this list of conditions and the following disclaimer in |
| the documentation and/or other materials provided with the |
| 3. The names of the authors may not be used to endorse or promote |
| products derived from this software without specific prior |
| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
| ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| POSSIBILITY OF SUCH DAMAGE. |
+----------------------------------------------------------------------+
* helper class for parsing PROPFIND request bodies
* @package HTTP_WebDAV_Server
* @author Hartmut Holzgraefe <hholzgra@php.net>
* @version @package-version@
* found properties are collected here
* internal tag nesting depth counter
// property storage array
// internal tag depth counter
// remember if any input was parsed
$f_in = fopen($path, "r");
// set tag and data handlers
array (&$this, "_startElement"),
array (&$this, "_endElement"));
// we want a case sensitive parser
XML_OPTION_CASE_FOLDING , false );
// if no input was parsed it was a request
* @param array tag attributes
function _startElement ($parser, $name, $attrs)
list ($ns, $tag) = explode(" ", $name);
// special tags at level 1: <allprop> and <propname>
// requested properties are found at level 2
$prop = array ("name" => $tag);
function _endElement ($parser, $name)
// here we only need to decrement the depth count
Documentation generated on Mon, 11 Mar 2019 15:50:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|