示例#1
0
 function listProperties($path)
 {
     $options = array("--xml" => true, "--verbose" => true);
     $xml = Util::exec("proplist", $path, $options, $this->path);
     $data = DOM::parse($xml);
     $properties = $data->xpath("//property");
     $list = array();
     foreach ($properties as $prop) {
         $list[$prop->getAttribute("name")] = trim($prop->textContent);
     }
     return $list;
 }