Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

4620 lines (4328 sloc) 111.624 kb
<?php
/**
* Automatically generated by running "php schema.php domdocument".
*
* You may modify the file, but re-running schema.php against this file will
* standardize the format without losing your schema changes. It does lose
* any changes that are not part of schema. Use "note" field to comment on
* schema itself, and "note" fields are not used in any code generation but
* only staying within this file.
*/
///////////////////////////////////////////////////////////////////////////////
// Preamble: C++ code inserted at beginning of ext_{name}.h
DefinePreamble(<<<CPP
#include <runtime/ext/ext_domdocument_includes.h>
CPP
);
///////////////////////////////////////////////////////////////////////////////
// Constants
//
// array (
// 'name' => name of the constant
// 'type' => type of the constant
// 'note' => additional note about this constant's schema
// )
///////////////////////////////////////////////////////////////////////////////
// Functions
//
// array (
// 'name' => name of the function
// 'desc' => description of the function's purpose
// 'flags' => attributes of the function, see base.php for possible values
// 'opt' => optimization callback function's name for compiler
// 'note' => additional note about this function's schema
// 'return' =>
// array (
// 'type' => return type, use Reference for ref return
// 'desc' => description of the return value
// )
// 'args' => arguments
// array (
// 'name' => name of the argument
// 'type' => type of the argument, use Reference for output parameter
// 'value' => default value of the argument
// 'desc' => description of the argument
// )
// )
DefineFunction(
array(
'name' => "dom_document_create_element",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
array(
'name' => "value",
'type' => String,
'value' => "null_string",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_create_document_fragment",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_create_text_node",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "data",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_create_comment",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "data",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_create_cdatasection",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "data",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_create_processing_instruction",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "target",
'type' => String,
),
array(
'name' => "data",
'type' => String,
'value' => "null_string",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_create_attribute",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_create_entity_reference",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_get_elements_by_tag_name",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_import_node",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "importednode",
'type' => Object,
),
array(
'name' => "deep",
'type' => Boolean,
'value' => "false",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_create_element_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "qualifiedname",
'type' => String,
),
array(
'name' => "value",
'type' => String,
'value' => "null_string",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_create_attribute_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "qualifiedname",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_get_elements_by_tag_name_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "localname",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_get_element_by_id",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "elementid",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_normalize_document",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_save",
'desc' => "Creates an XML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns the number of bytes written or FALSE if an error occurred.",
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
'desc' => "The path to the saved XML document.",
),
array(
'name' => "file",
'type' => String,
'desc' => "Additional Options. Currently only LIBXML_NOEMPTYTAG is supported.",
),
array(
'name' => "options",
'type' => Int64,
'value' => "0",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_savexml",
'desc' => "Creates an XML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns the XML, or FALSE if an error occurred.",
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
'desc' => "Use this parameter to output only a specific node without XML declaration rather than the entire document.",
),
array(
'name' => "node",
'type' => Object,
'value' => "null_object",
'desc' => "Additional Options. Currently only LIBXML_NOEMPTYTAG is supported.",
),
array(
'name' => "options",
'type' => Int64,
'value' => "0",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_validate",
'desc' => "Validates the document based on its DTD.\n\nYou can also use the validateOnParse property of DOMDocument to make a DTD validation.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns TRUE on success or FALSE on failure. If the document have no DTD attached, this method will return FALSE.",
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_xinclude",
'desc' => "This method substitutes » XIncludes in a DOMDocument object.\n\nDue to libxml2 automatically resolving entities, this method will produce unexpected results if the included XML file have an attached DTD.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns the number of XIncludes in the document, -1 if some processing failed, or FALSE if there were no substitutions.",
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
'desc' => "libxml parameters. Available since PHP 5.1.0 and Libxml 2.6.7.",
),
array(
'name' => "options",
'type' => Int64,
'value' => "0",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_save_html",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_save_html_file",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "file",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_schema_validate_file",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "filename",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_schema_validate_xml",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "source",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_relaxng_validate_file",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "filename",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_document_relaxng_validate_xml",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "source",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_insert_before",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "newnode",
'type' => Object,
),
array(
'name' => "refnode",
'type' => Object,
'value' => "null",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_replace_child",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "newchildobj",
'type' => Object,
),
array(
'name' => "oldchildobj",
'type' => Object,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_remove_child",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "node",
'type' => Object,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_append_child",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "newnode",
'type' => Object,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_has_child_nodes",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_clone_node",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "deep",
'type' => Boolean,
'value' => "false",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_normalize",
'desc' => "Normalizes the node.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "No value is returned.",
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_is_supported",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "feature",
'type' => String,
),
array(
'name' => "version",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_has_attributes",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_is_same_node",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "node",
'type' => Object,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_lookup_prefix",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "prefix",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_is_default_namespace",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_node_lookup_namespace_uri",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_nodelist_item",
'desc' => "Retrieves a node specified by index within the DOMNodeList object. Tip\n\nIf you need to know the number of nodes in the collection, use the length property of the DOMNodeList object.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The node at the indexth position in the DOMNodeList, or NULL if that is not a valid index.",
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
'desc' => "Index of the node into the collection.",
),
array(
'name' => "index",
'type' => Int64,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_namednodemap_get_named_item",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_namednodemap_item",
'desc' => "Retrieves a node specified by index within the DOMNamedNodeMap object.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The node at the indexth position in the map, or NULL if that is not a valid index (greater than or equal to the number of nodes in this map).",
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
'desc' => "Index into this map.",
),
array(
'name' => "index",
'type' => Int64,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_namednodemap_get_named_item_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "localname",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_characterdata_substring_data",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "offset",
'type' => Int64,
),
array(
'name' => "count",
'type' => Int64,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_characterdata_append_data",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "arg",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_characterdata_insert_data",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "offset",
'type' => Int64,
),
array(
'name' => "data",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_characterdata_delete_data",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "offset",
'type' => Int64,
),
array(
'name' => "count",
'type' => Int64,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_characterdata_replace_data",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "offset",
'type' => Int64,
),
array(
'name' => "count",
'type' => Int64,
),
array(
'name' => "data",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_attr_is_id",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_get_attribute",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_set_attribute",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
array(
'name' => "value",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_remove_attribute",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_get_attribute_node",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_set_attribute_node",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "newattr",
'type' => Object,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_remove_attribute_node",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "oldattr",
'type' => Object,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_get_elements_by_tag_name",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_get_attribute_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "localname",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_set_attribute_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "name",
'type' => String,
),
array(
'name' => "value",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_remove_attribute_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "localname",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_get_attribute_node_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "localname",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_set_attribute_node_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "newattr",
'type' => Object,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_get_elements_by_tag_name_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "localname",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_has_attribute",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_has_attribute_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "localname",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_set_id_attribute",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "name",
'type' => String,
),
array(
'name' => "isid",
'type' => Boolean,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_set_id_attribute_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "namespaceuri",
'type' => String,
),
array(
'name' => "localname",
'type' => String,
),
array(
'name' => "isid",
'type' => Boolean,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_element_set_id_attribute_node",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "idattr",
'type' => Object,
),
array(
'name' => "isid",
'type' => Boolean,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_text_split_text",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "offset",
'type' => Int64,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_text_is_whitespace_in_element_content",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_xpath_register_ns",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "prefix",
'type' => String,
),
array(
'name' => "uri",
'type' => String,
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_xpath_query",
'desc' => "Executes the given XPath expression.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns a DOMNodeList containing all nodes matching the given XPath expression. Any expression which do not return nodes will return an empty DOMNodeList.",
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
'desc' => "The XPath expression to execute.",
),
array(
'name' => "expr",
'type' => String,
'desc' => "The optional contextnode can be specified for doing relative XPath queries. By default, the queries are relative to the root element.",
),
array(
'name' => "context",
'type' => Object,
'value' => "null_object",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_xpath_evaluate",
'desc' => "Executes the given XPath expression and returns a typed result if possible.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns a typed result if possible or a DOMNodeList containing all nodes matching the given XPath expression.",
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
'desc' => "The XPath expression to execute.",
),
array(
'name' => "expr",
'type' => String,
'desc' => "The optional contextnode can be specified for doing relative XPath queries. By default, the queries are relative to the root element.",
),
array(
'name' => "context",
'type' => Object,
'value' => "null_object",
),
),
'taint_observer' => false,
));
DefineFunction(
array(
'name' => "dom_xpath_register_php_functions",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "obj",
'type' => Variant,
),
array(
'name' => "funcs",
'type' => Variant,
'value' => "null",
),
),
'taint_observer' => false,
));
///////////////////////////////////////////////////////////////////////////////
// Classes
//
// BeginClass
// array (
// 'name' => name of the class
// 'desc' => description of the class's purpose
// 'flags' => attributes of the class, see base.php for possible values
// 'note' => additional note about this class's schema
// 'parent' => parent class name, if any
// 'ifaces' => array of interfaces tihs class implements
// 'bases' => extra internal and special base classes this class requires
// 'footer' => extra C++ inserted at end of class declaration
// )
//
// DefineConstant(..)
// DefineConstant(..)
// ...
// DefineFunction(..)
// DefineFunction(..)
// ...
// DefineProperty
// DefineProperty
//
// array (
// 'name' => name of the property
// 'type' => type of the property
// 'flags' => attributes of the property
// 'desc' => description of the property
// 'note' => additional note about this property's schema
// )
//
// EndClass()
///////////////////////////////////////////////////////////////////////////////
BeginClass(
array(
'name' => "DOMNode",
'desc' => "",
'flags' => HasDocComment,
'footer' => <<<EOT
public:
virtual ObjectData *clone();
virtual p_DOMDocument doc() { return m_doc;}
p_DOMDocument m_doc;
xmlNodePtr m_node;
EOT
,
));
DefineFunction(
array(
'name' => "__construct",
'flags' => HasDocComment,
'return' => array(
'type' => null,
),
));
DefineFunction(
array(
'name' => "appendChild",
'desc' => "This functions appends a child to an existing list of children or creates a new list of children. The child can be created with e.g. DOMDocument::createElement(), DOMDocument::createTextNode() etc. or simply by using any other node.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The node added.",
),
'args' => array(
array(
'name' => "newnode",
'type' => Object,
'desc' => "The appended child.",
),
),
));
DefineFunction(
array(
'name' => "cloneNode",
'desc' => "Creates a copy of the node.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The cloned node.",
),
'args' => array(
array(
'name' => "deep",
'type' => Boolean,
'value' => "false",
'desc' => "Indicates whether to copy all descendant nodes. This parameter is defaulted to FALSE.",
),
),
));
DefineFunction(
array(
'name' => "getLineNo",
'desc' => "Gets line number for where the node is defined.",
'flags' => HasDocComment,
'return' => array(
'type' => Int64,
'desc' => "Always returns the line number where the node was defined in.",
),
));
DefineFunction(
array(
'name' => "hasAttributes",
'desc' => "This method checks if the node has attributes. The tested node have to be an XML_ELEMENT_NODE.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Returns TRUE on success or FALSE on failure.",
),
));
DefineFunction(
array(
'name' => "hasChildNodes",
'desc' => "This function checks if the node has children.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Returns TRUE on success or FALSE on failure.",
),
));
DefineFunction(
array(
'name' => "insertBefore",
'desc' => "This function inserts a new node right before the reference node. If you plan to do further modifications on the appended child you must use the returned node.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The inserted node.",
),
'args' => array(
array(
'name' => "newnode",
'type' => Object,
'desc' => "The new node.",
),
array(
'name' => "refnode",
'type' => Object,
'value' => "null",
'desc' => "The reference node. If not supplied, newnode is appended to the children.",
),
),
));
DefineFunction(
array(
'name' => "isDefaultNamespace",
'desc' => "Tells whether namespaceURI is the default namespace.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Return TRUE if namespaceURI is the default namespace, FALSE otherwise.",
),
'args' => array(
array(
'name' => "namespaceuri",
'type' => String,
'desc' => "The namespace URI to look for.",
),
),
));
DefineFunction(
array(
'name' => "isSameNode",
'desc' => "This function indicates if two nodes are the same node. The comparison is not based on content",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Returns TRUE on success or FALSE on failure.",
),
'args' => array(
array(
'name' => "node",
'type' => Object,
'desc' => "The compared node.",
),
),
));
DefineFunction(
array(
'name' => "isSupported",
'desc' => "Checks if the asked feature is supported for the specified version.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Returns TRUE on success or FALSE on failure.",
),
'args' => array(
array(
'name' => "feature",
'type' => String,
'desc' => "The feature to test. See the example of DOMImplementation::hasFeature() for a list of features.",
),
array(
'name' => "version",
'type' => String,
'desc' => "The version number of the feature to test.",
),
),
));
DefineFunction(
array(
'name' => "lookupNamespaceUri",
'desc' => "Gets the namespace URI of the node based on the prefix.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The namespace URI of the node.",
),
'args' => array(
array(
'name' => "namespaceuri",
'type' => String,
'desc' => "The prefix of the namespace.",
),
),
));
DefineFunction(
array(
'name' => "lookupPrefix",
'desc' => "Gets the namespace prefix of the node based on the namespace URI.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The prefix of the namespace.",
),
'args' => array(
array(
'name' => "prefix",
'type' => String,
'desc' => "The namespace URI.",
),
),
));
DefineFunction(
array(
'name' => "normalize",
'desc' => "Normalizes the node.",
'flags' => HasDocComment,
'return' => array(
'type' => null,
'desc' => "No value is returned.",
),
));
DefineFunction(
array(
'name' => "removeChild",
'desc' => "This functions removes a child from a list of children.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "If the child could be removed the functions returns the old child.",
),
'args' => array(
array(
'name' => "node",
'type' => Object,
'desc' => "The removed child.",
),
),
));
DefineFunction(
array(
'name' => "replaceChild",
'desc' => "This function replaces the child oldnode with the passed new node. If the new node is already a child it will not be added a second time. If the replacement succeeds the old node is returned.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The old node or FALSE if an error occur.",
),
'args' => array(
array(
'name' => "newchildobj",
'type' => Object,
'desc' => "The new node. It must be a member of the target document, i.e. created by one of the DOMDocument->createXXX() methods or imported in the document by DOMDocument::importNode.",
),
array(
'name' => "oldchildobj",
'type' => Object,
'desc' => "The old node.",
),
),
));
DefineFunction(
array(
'name' => "c14n",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "exclusive",
'type' => Boolean,
'value' => "false",
),
array(
'name' => "with_comments",
'type' => Boolean,
'value' => "false",
),
array(
'name' => "xpath",
'type' => Variant,
'value' => "null",
),
array(
'name' => "ns_prefixes",
'type' => Variant,
'value' => "null",
),
),
));
DefineFunction(
array(
'name' => "c14nfile",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "uri",
'type' => String,
),
array(
'name' => "exclusive",
'type' => Boolean,
'value' => "false",
),
array(
'name' => "with_comments",
'type' => Boolean,
'value' => "false",
),
array(
'name' => "xpath",
'type' => Variant,
'value' => "null",
),
array(
'name' => "ns_prefixes",
'type' => Variant,
'value' => "null",
),
),
));
DefineFunction(
array(
'name' => "getNodePath",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
));
DefineFunction(
array(
'name' => "__get",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
),
));
DefineFunction(
array(
'name' => "__set",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
array(
'name' => "value",
'type' => Variant,
),
),
));
DefineFunction(
array(
'name' => "__isset",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
),
));
EndClass(
);
///////////////////////////////////////////////////////////////////////////////
BeginClass(
array(
'name' => "DOMAttr",
'parent' => "DOMNode",
'desc' => "DOMAttr represents an attribute in the DOMElement object.",
'flags' => HasDocComment,
));
DefineFunction(
array(
'name' => "__construct",
'flags' => HasDocComment,
'return' => array(
'type' => null,
),
'args' => array(
array(
'name' => "name",
'type' => String,
),
array(
'name' => "value",
'type' => String,
'value' => "null_string",
),
),
));
DefineFunction(
array(
'name' => "isId",
'desc' => "This function checks if the attribute is a defined ID.\n\nAccording to the DOM standard this requires a DTD which defines the attribute ID to be of type ID. You need to validate your document with DOMDocument::validate or DOMDocument::validateOnParse before using this function.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Returns TRUE on success or FALSE on failure.",
),
));
DefineFunction(
array(
'name' => "__get",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
),
));
DefineFunction(
array(
'name' => "__set",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
array(
'name' => "value",
'type' => Variant,
),
),
));
DefineFunction(
array(
'name' => "__isset",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
),
));
EndClass(
);
///////////////////////////////////////////////////////////////////////////////
BeginClass(
array(
'name' => "DOMCharacterData",
'parent' => "DOMNode",
'desc' => "Represents nodes with character data. No nodes directly correspond to this class, but other nodes do inherit from it.",
'flags' => HasDocComment,
));
DefineFunction(
array(
'name' => "__construct",
'flags' => HasDocComment,
'return' => array(
'type' => null,
),
));
DefineFunction(
array(
'name' => "appendData",
'desc' => "Append the string data to the end of the character data of the node.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "No value is returned.",
),
'args' => array(
array(
'name' => "arg",
'type' => String,
'desc' => "The string to append.",
),
),
));
DefineFunction(
array(
'name' => "deleteData",
'desc' => "Deletes count characters starting from position offset.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "No value is returned.",
),
'args' => array(
array(
'name' => "offset",
'type' => Int64,
'desc' => "The offset from which to start removing.",
),
array(
'name' => "count",
'type' => Int64,
'desc' => "The number of characters to delete. If the sum of offset and count exceeds the length, then all characters to the end of the data are deleted.",
),
),
));
DefineFunction(
array(
'name' => "insertData",
'desc' => "Inserts string data at position offset.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "No value is returned.",
),
'args' => array(
array(
'name' => "offset",
'type' => Int64,
'desc' => "The character offset at which to insert.",
),
array(
'name' => "data",
'type' => String,
'desc' => "The string to insert.",
),
),
));
DefineFunction(
array(
'name' => "replaceData",
'desc' => "Replace count characters starting from position offset with data.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "No value is returned.",
),
'args' => array(
array(
'name' => "offset",
'type' => Int64,
'desc' => "The offset from which to start replacing.",
),
array(
'name' => "count",
'type' => Int64,
'desc' => "The number of characters to replace. If the sum of offset and count exceeds the length, then all characters to the end of the data are replaced.",
),
array(
'name' => "data",
'type' => String,
'desc' => "The string with which the range must be replaced.",
),
),
));
DefineFunction(
array(
'name' => "substringData",
'desc' => "Returns the specified substring.",
'flags' => HasDocComment,
'return' => array(
'type' => String,
'desc' => "The specified substring. If the sum of offset and count exceeds the length, then all 16-bit units to the end of the data are returned.",
),
'args' => array(
array(
'name' => "offset",
'type' => Int64,
'desc' => "Start offset of substring to extract.",
),
array(
'name' => "count",
'type' => Int64,
'desc' => "The number of characters to extract.",
),
),
));
DefineFunction(
array(
'name' => "__get",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
),
));
DefineFunction(
array(
'name' => "__set",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
array(
'name' => "value",
'type' => Variant,
),
),
));
DefineFunction(
array(
'name' => "__isset",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
),
));
EndClass(
);
///////////////////////////////////////////////////////////////////////////////
BeginClass(
array(
'name' => "DOMComment",
'parent' => "DOMCharacterData",
'desc' => "Represents comment nodes, characters delimited by <!-- and -->.",
'flags' => HasDocComment,
));
DefineFunction(
array(
'name' => "__construct",
'flags' => HasDocComment,
'return' => array(
'type' => null,
),
'args' => array(
array(
'name' => "value",
'type' => String,
'value' => "null_string",
),
),
));
EndClass(
);
///////////////////////////////////////////////////////////////////////////////
BeginClass(
array(
'name' => "DOMText",
'parent' => "DOMCharacterData",
'desc' => "The DOMText class inherits from DOMCharacterData and represents the textual content of a DOMElement or DOMAttr.",
'flags' => HasDocComment,
));
DefineFunction(
array(
'name' => "__construct",
'flags' => HasDocComment,
'return' => array(
'type' => null,
),
'args' => array(
array(
'name' => "value",
'type' => String,
'value' => "null_string",
),
),
));
DefineFunction(
array(
'name' => "isWhitespaceInElementContent",
'desc' => "Indicates whether this text node contains whitespace. The text node is determined to contain whitespace in element content during the load of the document.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Returns TRUE on success or FALSE on failure.",
),
));
DefineFunction(
array(
'name' => "splitText",
'desc' => "Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings.\n\nAfter being split, this node will contain all the content up to the offset. If the original node had a parent node, the new node is inserted as the next sibling of the original node. When the offset is equal to the length of this node, the new node has no data.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new node of the same type, which contains all the content at and after the offset.",
),
'args' => array(
array(
'name' => "offset",
'type' => Int64,
'desc' => "The offset at which to split, starting from 0.",
),
),
));
DefineFunction(
array(
'name' => "__get",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
),
));
DefineFunction(
array(
'name' => "__set",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
array(
'name' => "value",
'type' => Variant,
),
),
));
DefineFunction(
array(
'name' => "__isset",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
),
'args' => array(
array(
'name' => "name",
'type' => Variant,
),
),
));
EndClass(
);
///////////////////////////////////////////////////////////////////////////////
BeginClass(
array(
'name' => "DOMCDATASection",
'parent' => "DOMText",
'desc' => "",
'flags' => HasDocComment,
));
DefineFunction(
array(
'name' => "__construct",
'flags' => HasDocComment,
'return' => array(
'type' => null,
),
'args' => array(
array(
'name' => "value",
'type' => String,
),
),
));
EndClass(
);
///////////////////////////////////////////////////////////////////////////////
BeginClass(
array(
'name' => "DOMDocument",
'parent' => "DOMNode",
'bases' => array('Sweepable'),
'desc' => "Represents an entire HTML or XML document; serves as the root of the document tree.",
'flags' => HasDocComment | NoDefaultSweep,
'footer' => <<<EOT
public:
virtual p_DOMDocument doc() { return this;}
bool m_formatoutput;
bool m_validateonparse;
bool m_resolveexternals;
bool m_preservewhitespace;
bool m_substituteentities;
bool m_stricterror;
bool m_recover;
Array m_classmap;
std::auto_ptr<XmlNodeSet> m_orphans;
bool m_owner;
EOT
,
));
DefineFunction(
array(
'name' => "__construct",
'flags' => HasDocComment,
'return' => array(
'type' => null,
),
'args' => array(
array(
'name' => "version",
'type' => String,
'value' => "null_string",
),
array(
'name' => "encoding",
'type' => String,
'value' => "null_string",
),
),
));
DefineFunction(
array(
'name' => "createAttribute",
'desc' => "This function creates a new instance of class DOMAttr. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new DOMAttr or FALSE if an error occured.",
),
'args' => array(
array(
'name' => "name",
'type' => String,
'desc' => "The name of the attribute.",
),
),
));
DefineFunction(
array(
'name' => "createAttributens",
'desc' => "This function creates a new instance of class DOMAttr. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new DOMAttr or FALSE if an error occured.",
),
'args' => array(
array(
'name' => "namespaceuri",
'type' => String,
'desc' => "The URI of the namespace.",
),
array(
'name' => "qualifiedname",
'type' => String,
'desc' => "The tag name and prefix of the attribute, as prefix:tagname.",
),
),
));
DefineFunction(
array(
'name' => "createCDATASection",
'desc' => "This function creates a new instance of class DOMCDATASection. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new DOMCDATASection or FALSE if an error occured.",
),
'args' => array(
array(
'name' => "data",
'type' => String,
'desc' => "The content of the cdata.",
),
),
));
DefineFunction(
array(
'name' => "createComment",
'desc' => "This function creates a new instance of class DOMComment. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new DOMComment or FALSE if an error occured.",
),
'args' => array(
array(
'name' => "data",
'type' => String,
'desc' => "The content of the comment.",
),
),
));
DefineFunction(
array(
'name' => "createDocumentFragment",
'desc' => "This function creates a new instance of class DOMDocumentFragment. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new DOMDocumentFragment or FALSE if an error occured.",
),
));
DefineFunction(
array(
'name' => "createElement",
'desc' => "This function creates a new instance of class DOMElement. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns a new instance of class DOMElement or FALSE if an error occured.",
),
'args' => array(
array(
'name' => "name",
'type' => String,
'desc' => "The tag name of the element.",
),
array(
'name' => "value",
'type' => String,
'value' => "null_string",
'desc' => "The value of the element. By default, an empty element will be created. The value can also be set later with DOMElement->nodeValue.",
),
),
));
DefineFunction(
array(
'name' => "createElementNS",
'desc' => "This function creates a new element node with an associated namespace. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new DOMElement or FALSE if an error occured.",
),
'args' => array(
array(
'name' => "namespaceuri",
'type' => String,
'desc' => "The URI of the namespace.",
),
array(
'name' => "qualifiedname",
'type' => String,
'desc' => "The qualified name of the element, as prefix:tagname.",
),
array(
'name' => "value",
'type' => String,
'value' => "null_string",
'desc' => "The value of the element. By default, an empty element will be created. You can also set the value later with DOMElement->nodeValue.",
),
),
));
DefineFunction(
array(
'name' => "createEntityReference",
'desc' => "This function creates a new instance of class DOMEntityReference. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new DOMEntityReference or FALSE if an error occured.",
),
'args' => array(
array(
'name' => "name",
'type' => String,
'desc' => "The content of the entity reference, e.g. the entity reference minus the leading & and the trailing ; characters.",
),
),
));
DefineFunction(
array(
'name' => "createProcessingInstruction",
'desc' => "This function creates a new instance of class DOMProcessingInstruction. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new DOMProcessingInstruction or FALSE if an error occured.",
),
'args' => array(
array(
'name' => "target",
'type' => String,
'desc' => "The target of the processing instruction.",
),
array(
'name' => "data",
'type' => String,
'value' => "null_string",
'desc' => "The content of the processing instruction.",
),
),
));
DefineFunction(
array(
'name' => "createTextNode",
'desc' => "This function creates a new instance of class DOMText. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The new DOMText or FALSE if an error occured.",
),
'args' => array(
array(
'name' => "data",
'type' => String,
'desc' => "The content of the text.",
),
),
));
DefineFunction(
array(
'name' => "getElementById",
'desc' => "This function is similar to DOMDocument::getElementsByTagName but searches for an element with a given id.\n\nFor this function to work, you will need either to set some ID attributes with DOMElement::setIdAttribute or a DTD which defines an attribute to be of type ID. In the later case, you will need to validate your document with DOMDocument::validate or DOMDocument->validateOnParse before using this function.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns the DOMElement or NULL if the element is not found.",
),
'args' => array(
array(
'name' => "elementid",
'type' => String,
'desc' => "The unique id value for an element.",
),
),
));
DefineFunction(
array(
'name' => "getElementsByTagName",
'desc' => "This function returns a new instance of class DOMNodeList containing the elements with a given tag name.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "A new DOMNodeList object containing all the matched elements.",
),
'args' => array(
array(
'name' => "name",
'type' => String,
'desc' => "The name of the tag to match on. The special value * matches all tags.",
),
),
));
DefineFunction(
array(
'name' => "getElementsByTagNameNS",
'desc' => "Returns a DOMNodeList of all elements with a given local name and a namespace URI.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "A new DOMNodeList object containing all the matched elements.",
),
'args' => array(
array(
'name' => "namespaceuri",
'type' => String,
'desc' => "The namespace URI of the elements to match on. The special value * matches all namespaces.",
),
array(
'name' => "localname",
'type' => String,
'desc' => "The local name of the elements to match on. The special value * matches all local names.",
),
),
));
DefineFunction(
array(
'name' => "importNode",
'desc' => "This function returns a copy of the node to import and associates it with the current document.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "The copied node or FALSE, if it cannot be copied.",
),
'args' => array(
array(
'name' => "importednode",
'type' => Object,
'desc' => "The node to import.",
),
array(
'name' => "deep",
'type' => Boolean,
'value' => "false",
'desc' => "If set to TRUE, this method will recursively import the subtree under the importedNode.\n\nTo copy the nodes attributes deep needs to be set to TRUE",
),
),
));
DefineFunction(
array(
'name' => "load",
'desc' => "Loads an XML document from a file. Warning Unix style paths with forward slashes can cause significant performance degradation on Windows systems; be sure to call realpath() in such a case.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns TRUE on success or FALSE on failure. If called statically, returns a DOMDocument and issues E_STRICT warning.",
),
'args' => array(
array(
'name' => "filename",
'type' => String,
'desc' => "The path to the XML document.",
),
array(
'name' => "options",
'type' => Int64,
'value' => "0",
'desc' => "Bitwise OR of the libxml option constants.",
),
),
));
DefineFunction(
array(
'name' => "loadHTML",
'desc' => "The function parses the HTML contained in the string source. Unlike loading XML, HTML does not have to be well-formed to load. This function may also be called statically to load and create a DOMDocument object. The static invocation may be used when no DOMDocument properties need to be set prior to loading.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns TRUE on success or FALSE on failure. If called statically, returns a DOMDocument and issues E_STRICT warning.",
),
'args' => array(
array(
'name' => "source",
'type' => String,
'desc' => "The HTML string.",
),
),
));
DefineFunction(
array(
'name' => "loadHTMLFile",
'desc' => "The function parses the HTML document in the file named filename. Unlike loading XML, HTML does not have to be well-formed to load.\n\nThough not recommended, this function may also be called statically to load and create a DOMDocument object. The static invocation may be used when no DOMDocument properties need to be set prior to loading. However, doing so will result an in E_STRICT error being generated.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns TRUE on success or FALSE on failure. If called statically, returns a DOMDocument and issues E_STRICT warning.",
),
'args' => array(
array(
'name' => "filename",
'type' => String,
'desc' => "The path to the HTML file.",
),
),
));
DefineFunction(
array(
'name' => "loadXML",
'desc' => "Loads an XML document from a string.\n\nThis method may also be called statically to load and create a DOMDocument object. The static invocation may be used when no DOMDocument properties need to be set prior to loading.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns TRUE on success or FALSE on failure. If called statically, returns a DOMDocument and issues E_STRICT warning.",
),
'args' => array(
array(
'name' => "source",
'type' => String,
'desc' => "The string containing the XML.",
),
array(
'name' => "options",
'type' => Int64,
'value' => "0",
'desc' => "Bitwise OR of the libxml option constants.",
),
),
));
DefineFunction(
array(
'name' => "normalizeDocument",
'desc' => "This method acts as if you saved and then loaded the document, putting the document in a \"normal\" form.",
'flags' => HasDocComment,
'return' => array(
'type' => null,
'desc' => "No value is returned.",
),
));
DefineFunction(
array(
'name' => "registerNodeClass",
'desc' => "This method allows you to register your own extended DOM class to be used afterward by the PHP DOM extension.\n\nThis method is not part of the DOM standard.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Returns TRUE on success or FALSE on failure.",
),
'args' => array(
array(
'name' => "baseclass",
'type' => String,
'desc' => "The DOM class that you want to extend. You can find a list of these classes in the chapter introduction.",
),
array(
'name' => "extendedclass",
'type' => String,
'desc' => "Your extended class name. If NULL is provided, any previously registered class extending baseclass will be removed.",
),
),
));
DefineFunction(
array(
'name' => "relaxNGValidate",
'desc' => "Performs » relaxNG validation on the document based on the given RNG schema.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Returns TRUE on success or FALSE on failure.",
),
'args' => array(
array(
'name' => "filename",
'type' => String,
'desc' => "The RNG file.",
),
),
));
DefineFunction(
array(
'name' => "relaxNGValidateSource",
'desc' => "Performs » relaxNG validation on the document based on the given RNG source.",
'flags' => HasDocComment,
'return' => array(
'type' => Boolean,
'desc' => "Returns TRUE on success or FALSE on failure.",
),
'args' => array(
array(
'name' => "source",
'type' => String,
'desc' => "A string containing the RNG schema.",
),
),
));
DefineFunction(
array(
'name' => "save",
'desc' => "Creates an XML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns the number of bytes written or FALSE if an error occurred.",
),
'args' => array(
array(
'name' => "file",
'type' => String,
'desc' => "The path to the saved XML document.",
),
array(
'name' => "options",
'type' => Int64,
'value' => "0",
'desc' => "Additional Options. Currently only LIBXML_NOEMPTYTAG is supported.",
),
),
));
DefineFunction(
array(
'name' => "saveHTML",
'desc' => "Creates an HTML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns the HTML, or FALSE if an error occurred.",
),
));
DefineFunction(
array(
'name' => "saveHTMLFile",
'desc' => "Creates an HTML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns the number of bytes written or FALSE if an error occurred.",
),
'args' => array(
array(
'name' => "file",
'type' => String,
'desc' => "The path to the saved HTML document.",
),
),
));
DefineFunction(
array(
'name' => "saveXML",
'desc' => "Creates an XML document from the DOM representation. This function is usually called after building a new dom document from scratch as in the example below.",
'flags' => HasDocComment,
'return' => array(
'type' => Variant,
'desc' => "Returns the XML, or FALSE if an error occurred.",
),
'args' => array(
array(
'name' => "node",
'type' => Object,
'value' => "null_object",
'desc' => "Use this parameter to output only a specific node without XML declaration rather than the entire document.",
),
array(
'name' => "options",
'type' => Int64,
'value' => "0",
'desc' => "Additional Options. Currently only LIBXML_NOEMPTYTAG is supported.",
),
),
));