Source for file _parse_propfind_response.php
Documentation is available at _parse_propfind_response.php
// helper class for parsing PROPFIND response bodies
class HTTP_WebDAV_Client_parse_propfind_response
// get requested properties as array containing name/namespace pairs
function HTTP_WebDAV_Client_parse_propfind_response ($response)
array (&$this, "_startElement"),
array (&$this, "_endElement"));
$this->success = xml_parse($xml_parser, $response, true );
function _startElement ($parser, $name, $attrs)
list ($ns, $tag) = explode(" ", $name);
// TODO check is_executable, lockinfo ...
$this->_tmpprop = array ("mode" => 0100666 /* all may read and write (for now) */);
function _endElement ($parser, $name)
list ($ns, $tag) = explode(" ", $name);
$this->urls[$this->_tmphref] = $this->_tmpvals;
$this->_tmphref = $this->_tmpdata;
if (isset ($this->_tmpstat) && strstr($this->_tmpstat, " 200 ")) {
$this->_tmpvals = $this->_tmpprop;
$this->_tmpstat = $this->_tmpdata;
$this->_tmpprop['atime'] = strtotime($this->_tmpdata);
$this->_tmpprop['mtime'] = strtotime($this->_tmpdata);
$t = preg_split("/[^[:digit:]]/", $this->_tmpdata);
$this->_tmpprop['ctime'] = mktime($t[3 ], $t[4 ], $t[5 ], $t[1 ], $t[2 ], $t[0 ]);
$this->_tmpprop['size'] = $this->_tmpdata;
$this->_tmpprop['mode'] &= ~0100000; // clear S_IFREG
$this->_tmpprop['mode'] |= 040000; // set S_IFDIR
function _data ($parser, $data)
function stat ($href = false )
Documentation generated on Mon, 11 Mar 2019 15:46:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|