65 $this->success =
true;
68 $this->props =
array();
77 $f_in = fopen(
$path,
"r");
79 $this->success =
false;
84 $xml_parser = xml_parser_create_ns(
"UTF-8",
" ");
87 xml_set_element_handler(
89 array(&$this,
"_startElement"),
90 array(&$this,
"_endElement")
94 xml_parser_set_option(
96 XML_OPTION_CASE_FOLDING,
102 while ($this->success && !feof($f_in)) {
103 $line = fgets($f_in);
104 if (is_string($line)) {
106 $this->success &= xml_parse($xml_parser, $line,
false);
112 $this->success &= xml_parse($xml_parser,
"",
true);
116 xml_parser_free($xml_parser);
122 if (!count($this->props)) {
123 $this->props =
"all";
139 if (strstr(
$name,
" ")) {
142 $this->success =
false;
150 if ($this->depth == 1) {
151 if (
$tag ==
"allprop") {
152 $this->props =
"all";
155 if (
$tag ==
"propname") {
156 $this->props =
"names";
161 if ($this->depth == 2) {
164 $prop[
"xmlns"] = $ns;
166 $this->props[] = $prop;
_startElement($parser, $name, $attrs)
start tag handler
Create styles array
The data for the language used.
__construct($path)
constructor
_endElement($parser, $name)
end tag handler
if(function_exists('posix_getuid') &&posix_getuid()===0) if(!array_key_exists('t', $options)) $tag