node = $node; $this->xml = $xml ; } public static function dtd() { return <<xml->attributes($this->node, array("type", "name", "html", "urlencode")); $attributes = $parse["attributes_array"]; $data = $this->xml->getDataItem("option"); if (!isset($data[$attributes["type"]][$attributes["name"]])) { return False; } $data = $data[$attributes["type"]][$attributes["name"]]; return call_user_func(array($this, $returntype), $data, $attributes["html"], $attributes["urlencode"]); } private function xhtml($data, $html, $urlencode) { if ($urlencode == "urlencode") { $data = urlencode($data); } if ($html != "html") { $data = xml::mask_xml($data); } return $data; } } ?>