UNPKG

phpjs

Version:

php.js offers community built php functions in javascript

608 lines (606 loc) 370 kB
# php-src/ext/bcmath/bcmath.c string bcadd(string left_operand, string right_operand [, int scale]) U Returns the sum of two arbitrary precision numbers int bccomp(string left_operand, string right_operand [, int scale]) U Compares two arbitrary precision numbers string bcdiv(string left_operand, string right_operand [, int scale]) U Returns the quotient of two arbitrary precision numbers (division) string bcmod(string left_operand, string right_operand) U Returns the modulus of the two arbitrary precision operands string bcmul(string left_operand, string right_operand [, int scale]) U Returns the multiplication of two arbitrary precision numbers string bcpow(string x, string y [, int scale]) U Returns the value of an arbitrary precision number raised to the power of another string bcpowmod(string x, string y, string mod [, int scale]) U Returns the value of an arbitrary precision number raised to the power of another reduced by a modulous bool bcscale(int scale) U Sets default scale parameter for all bc math functions string bcsqrt(string operand [, int scale]) U Returns the square root of an arbitray precision number string bcsub(string left_operand, string right_operand [, int scale]) U Returns the difference between two arbitrary precision numbers # php-src/ext/bz2/bz2.c string bzcompress(string source [, int blocksize100k [, int workfactor]]) U Compresses a string into BZip2 encoded data string bzdecompress(string source [, int small]) U Decompresses BZip2 compressed data int bzerrno(resource bz) U Returns the error number array bzerror(resource bz) U Returns the error number and error string in an associative array string bzerrstr(resource bz) U Returns the error string resource bzopen(string|int file|fp, string mode) U Opens a new BZip2 stream string bzread(resource bz[, int length]) U Reads up to length bytes from a BZip2 stream, or 1024 bytes if length is not specified # php-src/ext/calendar/cal_unix.c int jdtounix(int jday) Convert Julian Day to UNIX timestamp int unixtojd([int timestamp]) Convert UNIX timestamp to Julian Day # php-src/ext/calendar/calendar.c int cal_days_in_month(int calendar, int month, int year) Returns the number of days in a month for a given year and calendar array cal_from_jd(int jd, int calendar) Converts from Julian Day Count to a supported calendar and return extended information array cal_info([int calendar]) Returns information about a particular calendar int cal_to_jd(int calendar, int month, int day, int year) Converts from a supported calendar to Julian Day Count int frenchtojd(int month, int day, int year) Converts a french republic calendar date to julian day count int gregoriantojd(int month, int day, int year) Converts a gregorian calendar date to julian day count mixed jddayofweek(int juliandaycount [, int mode]) Returns name or number of day of week from julian day count string jdmonthname(int juliandaycount, int mode) Returns name of month for julian day count string jdtofrench(int juliandaycount) Converts a julian day count to a french republic calendar date string jdtogregorian(int juliandaycount) Converts a julian day count to a gregorian calendar date string jdtojewish(int juliandaycount [, bool hebrew [, int fl]]) Converts a julian day count to a jewish calendar date string jdtojulian(int juliandaycount) Convert a julian day count to a julian calendar date int jewishtojd(int month, int day, int year) Converts a jewish calendar date to a julian day count int juliantojd(int month, int day, int year) Converts a julian calendar date to julian day count # php-src/ext/calendar/easter.c int easter_date([int year]) Return the timestamp of midnight on Easter of a given year (defaults to current year) int easter_days([int year, [int method]]) Return the number of days after March 21 that Easter falls on for a given year (defaults to current year) # php-src/ext/com_dotnet/com_com.c string com_create_guid() Generate a globally unique identifier (GUID) bool com_event_sink(object comobject, object sinkobject [, mixed sinkinterface]) Connect events from a COM object to a PHP object object com_get_active_object(string progid [, int code_page ]) Returns a handle to an already running instance of a COM object bool com_load_typelib(string typelib_name [, int case_insensitive]) Loads a Typelibrary and registers its constants bool com_message_pump([int timeoutms]) Process COM messages, sleeping for up to timeoutms milliseconds bool com_print_typeinfo(object comobject | string typelib, string dispinterface, bool wantsink) Print out a PHP class definition for a dispatchable interface # php-src/ext/com_dotnet/com_persist.c string COMPersistHelper::GetCurFile() Determines the filename into which an object will be saved, or false if none is set, via IPersistFile::GetCurFile int COMPersistHelper::GetMaxStreamSize() Gets maximum stream size required to store the object data, via IPersistStream::GetSizeMax (or IPersistStreamInit::GetSizeMax) int COMPersistHelper::InitNew() Initializes the object to a default state, via IPersistStreamInit::InitNew bool COMPersistHelper::LoadFromFile(string filename [, int flags]) Load object data from file, via IPersistFile::Load mixed COMPersistHelper::LoadFromStream(resource stream) Initializes an object from the stream where it was previously saved, via IPersistStream::Load or OleLoadFromStream bool COMPersistHelper::SaveToFile(string filename [, bool remember]) Persist object data to file, via IPersistFile::Save int COMPersistHelper::SaveToStream(resource stream) Saves the object to a stream, via IPersistStream::Save int COMPersistHelper::__construct([object com_object]) Creates a persistence helper object, usually associated with a com_object # php-src/ext/com_dotnet/com_variant.c mixed variant_abs(mixed left) Returns the absolute value of a variant mixed variant_add(mixed left, mixed right) "Adds" two variant values together and returns the result mixed variant_and(mixed left, mixed right) performs a bitwise AND operation between two variants and returns the result object variant_cast(object variant, int type) Convert a variant into a new variant object of another type mixed variant_cat(mixed left, mixed right) concatenates two variant values together and returns the result int variant_cmp(mixed left, mixed right [, int lcid [, int flags]]) Compares two variants object variant_date_from_timestamp(int timestamp) Returns a variant date representation of a unix timestamp int variant_date_to_timestamp(object variant) Converts a variant date/time value to unix timestamp mixed variant_div(mixed left, mixed right) Returns the result from dividing two variants mixed variant_eqv(mixed left, mixed right) Performs a bitwise equivalence on two variants mixed variant_fix(mixed left) Returns the integer part ? of a variant int variant_get_type(object variant) Returns the VT_XXX type code for a variant mixed variant_idiv(mixed left, mixed right) Converts variants to integers and then returns the result from dividing them mixed variant_imp(mixed left, mixed right) Performs a bitwise implication on two variants mixed variant_int(mixed left) Returns the integer portion of a variant mixed variant_mod(mixed left, mixed right) Divides two variants and returns only the remainder mixed variant_mul(mixed left, mixed right) multiplies the values of the two variants and returns the result mixed variant_neg(mixed left) Performs logical negation on a variant mixed variant_not(mixed left) Performs bitwise not negation on a variant mixed variant_or(mixed left, mixed right) Performs a logical disjunction on two variants mixed variant_pow(mixed left, mixed right) Returns the result of performing the power function with two variants mixed variant_round(mixed left, int decimals) Rounds a variant to the specified number of decimal places void variant_set(object variant, mixed value) Assigns a new value for a variant object void variant_set_type(object variant, int type) Convert a variant into another type. Variant is modified "in-place" mixed variant_sub(mixed left, mixed right) subtracts the value of the right variant from the left variant value and returns the result mixed variant_xor(mixed left, mixed right) Performs a logical exclusion on two variants # php-src/ext/ctype/ctype.c bool ctype_alnum(mixed c) Checks for alphanumeric character(s) bool ctype_alpha(mixed c) Checks for alphabetic character(s) bool ctype_cntrl(mixed c) Checks for control character(s) bool ctype_digit(mixed c) Checks for numeric character(s) bool ctype_graph(mixed c) Checks for any printable character(s) except space bool ctype_lower(mixed c) Checks for lowercase character(s) bool ctype_print(mixed c) Checks for printable character(s) bool ctype_punct(mixed c) Checks for any printable character which is not whitespace or an alphanumeric character bool ctype_space(mixed c) Checks for whitespace character(s) bool ctype_upper(mixed c) Checks for uppercase character(s) bool ctype_xdigit(mixed c) Checks for character(s) representing a hexadecimal digit # php-src/ext/curl/interface.c void curl_close(resource ch) U Close a cURL session resource curl_copy_handle(resource ch) U Copy a cURL handle along with all of it's preferences int curl_errno(resource ch) U Return an integer containing the last error number string curl_error(resource ch) U Return a string contain the last error for the current session bool curl_exec(resource ch) U Perform a cURL session mixed curl_getinfo(resource ch [, int option]) U Get information regarding a specific transfer resource curl_init([string url]) U Initialize a cURL session bool curl_setopt(resource ch, int option, mixed value) U Set an option for a cURL transfer bool curl_setopt_array(resource ch, array options) U Set an array of option for a cURL transfer array curl_version([int version]) U Return cURL version information. # php-src/ext/curl/multi.c int curl_multi_add_handle(resource mh, resource ch) U Add a normal cURL handle to a cURL multi handle void curl_multi_close(resource mh) U Close a set of cURL handles int curl_multi_exec(resource mh, int &still_running) U Run the sub-connections of the current cURL handle string curl_multi_getcontent(resource ch) U Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set array curl_multi_info_read(resource mh [, long msgs_in_queue]) U Get information about the current transfers resource curl_multi_init(void) U Returns a new cURL multi handle int curl_multi_remove_handle(resource mh, resource ch) U Remove a multi handle from a set of cURL handles int curl_multi_select(resource mh[, double timeout]) U Get all the sockets associated with the cURL extension, which can then be "selected" # php-src/ext/date/php_date.c bool checkdate(int month, int day, int year) Returns true(1) if it is a valid date in gregorian calendar string date(string format [, long timestamp]) Format a local date/time DateTime date_create([string time[, DateTimeZone object]]) Returns new DateTime object void date_date_set(DateTime object, long year, long month, long day) Sets the date. string date_default_timezone_get() Gets the default timezone used by all date/time functions in a script bool date_default_timezone_set(string timezone_identifier) Sets the default timezone used by all date/time functions in a script string date_format(DateTime object, string format) Returns date formatted according to given format string date_format_locale(DateTime object, string format) void date_isodate_set(DateTime object, long year, long week[, long day]) Sets the ISO date. void date_modify(DateTime object, string modify) Alters the timestamp. long date_offset_get(DateTime object) Returns the DST offset. array date_parse(string date) Returns associative array with detailed info about given date array date_sun_info(long time, float latitude, float longitude) Returns an array with information about sun set/rise and twilight begin/end mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) Returns time of sunrise for a given day and location mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]]) Returns time of sunset for a given day and location void date_time_set(DateTime object, long hour, long minute[, long second]) Sets the time. DateTimeZone date_timezone_get(DateTime object) Return new DateTimeZone object relative to give DateTime void date_timezone_set(DateTime object, DateTimeZone object) Sets the timezone for the DateTime object. array getdate([int timestamp]) Get date/time information string gmdate(string format [, long timestamp]) Format a GMT date/time int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) Get UNIX timestamp for a GMT date string gmstrftime(string format [, int timestamp]) Format a GMT/UCT time/date according to locale settings int idate(string format [, int timestamp]) Format a local time/date as integer array localtime([int timestamp [, bool associative_array]]) Returns the results of the C system call localtime as an associative array if the associative_array argument is set to 1 other wise it is a regular array int mktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]]) Get UNIX timestamp for a date string strftime(string format [, int timestamp]) Format a local time/date according to locale settings int strtotime(string time [, int now ]) Convert string representation of date and time to a timestamp int time(void) Return current UNIX timestamp DateTime::__construct([string time[, DateTimeZone object]]) Creates new DateTime object DateTimeZone::__construct(string timezone) Creates new DateTimeZone object. array timezone_abbreviations_list() Returns associative array containing dst, offset and the timezone name array timezone_identifiers_list() Returns numerically index array with all timezone identifiers. string timezone_name_from_abbr(string abbr[, long gmtOffset[, long isdst]]) Returns the timezone name from abbrevation string timezone_name_get(DateTimeZone object) Returns the name of the timezone. long timezone_offset_get(DateTimeZone object, DateTime object) Returns the timezone offset. DateTimeZone timezone_open(string timezone) Returns new DateTimeZone object array timezone_transitions_get(DateTimeZone object) Returns numeracilly indexed array containing associative array for all transitions for the timezone. # php-src/ext/dba/dba.c void dba_close(resource handle) Closes database bool dba_delete(string key, resource handle) Deletes the entry associated with key If inifile: remove all other key lines bool dba_exists(string key, resource handle) Checks, if the specified key exists string dba_fetch(string key, [int skip ,] resource handle) Fetches the data associated with key string dba_firstkey(resource handle) Resets the internal key pointer and returns the first key array dba_handlers([bool full_info]) List configured database handlers bool dba_insert(string key, string value, resource handle) If not inifile: Insert value as key, return false, if key exists already If inifile: Add vakue as key (next instance of key) array|false dba_key_split(string key) Splits an inifile key into an array of the form array(0=>group,1=>value_name) but returns false if input is false or null array dba_list() List opened databases string dba_nextkey(resource handle) Returns the next key resource dba_open(string path, string mode [, string handlername, string ...]) Opens path using the specified handler in mode bool dba_optimize(resource handle) Optimizes (e.g. clean up, vacuum) database resource dba_popen(string path, string mode [, string handlername, string ...]) Opens path using the specified handler in mode persistently bool dba_replace(string key, string value, resource handle) Inserts value as key, replaces key, if key exists already If inifile: remove all other key lines bool dba_sync(resource handle) Synchronizes database # php-src/ext/dbase/dbase.c bool dbase_add_record(int identifier, array data) Adds a record to the database bool dbase_close(int identifier) Closes an open dBase-format database file bool dbase_create(string filename, array fields) Creates a new dBase-format database file bool dbase_delete_record(int identifier, int record) Marks a record to be deleted array dbase_get_header_info(int database_handle) array dbase_get_record(int identifier, int record) Returns an array representing a record from the database array dbase_get_record_with_names(int identifier, int record) Returns an associative array representing a record from the database int dbase_numfields(int identifier) Returns the number of fields (columns) in the database int dbase_numrecords(int identifier) Returns the number of records in the database int dbase_open(string name, int mode) Opens a dBase-format database file bool dbase_pack(int identifier) Packs the database (deletes records marked for deletion) bool dbase_replace_record(int identifier, array data, int recnum) Replaces a record to the database # php-src/ext/dom/attr.c void DOMAttr::__construct(string name, [string value]) U */ PHP_METHOD(domattr, __construct) { zval *id; xmlAttrPtr nodep = NULL; xmlNodePtr oldnode = NULL; dom_object *intern; char *name, *value = NULL; int name_len, value_len, name_valid; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os&|s&", &id, dom_attr_class_entry, &name, &name_len, UG(utf8_conv), &value, &value_len, UG(utf8_conv)) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); name_valid = xmlValidateName((xmlChar *) name, 0); if (name_valid != 0) { php_dom_throw_error(INVALID_CHARACTER_ERR, 1 TSRMLS_CC); RETURN_FALSE; } nodep = xmlNewProp(NULL, (xmlChar *) name, (xmlChar *) value); if (!nodep) { php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); RETURN_FALSE; } if (intern != NULL) { oldnode = dom_object_get_node(intern); if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern TSRMLS_CC); } } /* }}} end DOMAttr::__construct boolean dom_attr_is_id() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Attr-isId Since: DOM Level 3 # php-src/ext/dom/cdatasection.c void DOMCdataSection::__construct(string value) U */ PHP_METHOD(domcdatasection, __construct) { zval *id; xmlNodePtr nodep = NULL, oldnode = NULL; dom_object *intern; char *value = NULL; int value_len; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os&", &id, dom_cdatasection_class_entry, &value, &value_len, UG(utf8_conv)) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); nodep = xmlNewCDataBlock(NULL, (xmlChar *) value, value_len); if (!nodep) { php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); RETURN_FALSE; } intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { oldnode = (xmlNodePtr)intern->ptr; if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern TSRMLS_CC); } } /* }}} end DOMCdataSection::__construct # php-src/ext/dom/characterdata.c void dom_characterdata_append_data(string arg) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-32791A2F Since: void dom_characterdata_delete_data(int offset, int count) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-7C603781 Since: void dom_characterdata_insert_data(int offset, string arg) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-3EDB695F Since: void dom_characterdata_replace_data(int offset, int count, string arg) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-E5CBA7FB Since: string dom_characterdata_substring_data(int offset, int count) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-6531BCCF Since: # php-src/ext/dom/comment.c void DOMComment::__construct([string value]) U */ PHP_METHOD(domcomment, __construct) { zval *id; xmlNodePtr nodep = NULL, oldnode = NULL; dom_object *intern; char *value = NULL; int value_len; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|s&", &id, dom_comment_class_entry, &value, &value_len, UG(utf8_conv)) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); nodep = xmlNewComment((xmlChar *) value); if (!nodep) { php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); RETURN_FALSE; } intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { oldnode = (xmlNodePtr)intern->ptr; if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)nodep, (void *)intern TSRMLS_CC); } } /* }}} end DOMComment::__construct # php-src/ext/dom/document.c void DOMDocument::__construct([string version], [string encoding]) U */ PHP_METHOD(domdocument, __construct) { zval *id; xmlDoc *docp = NULL, *olddoc; dom_object *intern; char *encoding, *version = NULL; int encoding_len = 0, version_len = 0, refcount; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|s&s&", &id, dom_document_class_entry, &version, &version_len, UG(utf8_conv), &encoding, &encoding_len, UG(utf8_conv)) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); docp = xmlNewDoc(version); if (!docp) { php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); RETURN_FALSE; } if (encoding_len > 0) { docp->encoding = (const xmlChar*)xmlStrdup(encoding); } intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { olddoc = (xmlDocPtr) dom_object_get_node(intern); if (olddoc != NULL) { php_libxml_decrement_node_ptr((php_libxml_node_object *) intern TSRMLS_CC); refcount = php_libxml_decrement_doc_ref((php_libxml_node_object *)intern TSRMLS_CC); if (refcount != 0) { olddoc->_private = NULL; } } intern->document = NULL; if (php_libxml_increment_doc_ref((php_libxml_node_object *)intern, docp TSRMLS_CC) == -1) { RETURN_FALSE; } php_libxml_increment_node_ptr((php_libxml_node_object *)intern, (xmlNodePtr)docp, (void *)intern TSRMLS_CC); } } /* }}} end DOMDocument::__construct boolean DOMDocument::registerNodeClass(string baseclass, string extendedclass) U Register extended class used to create base node type DOMNode dom_document_adopt_node(DOMNode source) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-adoptNode Since: DOM Level 3 DOMAttr dom_document_create_attribute(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1084891198 Since: DOMAttr dom_document_create_attribute_ns(string namespaceURI, string qualifiedName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-DocCrAttrNS Since: DOM Level 2 DOMCdataSection dom_document_create_cdatasection(string data) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-D26C0AF8 Since: DOMComment dom_document_create_comment(string data) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1334481328 Since: DOMDocumentFragment dom_document_create_document_fragment() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-35CB04B5 Since: DOMElement dom_document_create_element(string tagName [, string value]) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-2141741547 Since: DOMElement dom_document_create_element_ns(string namespaceURI, string qualifiedName [,string value]) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-DocCrElNS Since: DOM Level 2 DOMEntityReference dom_document_create_entity_reference(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-392B75AE Since: DOMProcessingInstruction dom_document_create_processing_instruction(string target, string data) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-135944439 Since: DOMText dom_document_create_text_node(string data) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1975348127 Since: DOMElement dom_document_get_element_by_id(string elementId) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getElBId Since: DOM Level 2 DOMNodeList dom_document_get_elements_by_tag_name(string tagname) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-A6C9094 Since: DOMNodeList dom_document_get_elements_by_tag_name_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getElBTNNS Since: DOM Level 2 DOMNode dom_document_import_node(DOMNode importedNode, boolean deep) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Core-Document-importNode Since: DOM Level 2 DOMNode dom_document_load(string source [, int options]) U URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-load Since: DOM Level 3 DOMNode dom_document_load_html(string source) U Since: DOM extended DOMNode dom_document_load_html_file(string source) U Since: DOM extended DOMNode dom_document_loadxml(string source [, int options]) U URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-loadXML Since: DOM Level 3 void dom_document_normalize_document() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-normalizeDocument Since: DOM Level 3 boolean dom_document_relaxNG_validate_file(string filename) U */ PHP_FUNCTION(dom_document_relaxNG_validate_file) { _dom_document_relaxNG_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_FILE); } /* }}} end dom_document_relaxNG_validate_file boolean dom_document_relaxNG_validate_xml(string source) U */ PHP_FUNCTION(dom_document_relaxNG_validate_xml) { _dom_document_relaxNG_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_STRING); } /* }}} end dom_document_relaxNG_validate_xml DOMNode dom_document_rename_node(node n, string namespaceURI, string qualifiedName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-renameNode Since: DOM Level 3 int dom_document_save(string file) U Convenience method to save to file string dom_document_save_html() U Convenience method to output as html int dom_document_save_html_file(string file) U Convenience method to save to file as html string dom_document_savexml([node n]) U URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-saveXML Since: DOM Level 3 boolean dom_document_schema_validate(string source) U */ PHP_FUNCTION(dom_document_schema_validate_xml) { _dom_document_schema_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_STRING); } /* }}} end dom_document_schema_validate boolean dom_document_schema_validate_file(string filename) U */ PHP_FUNCTION(dom_document_schema_validate_file) { _dom_document_schema_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_FILE); } /* }}} end dom_document_schema_validate_file boolean dom_document_validate() U Since: DOM extended int dom_document_xinclude([int options]) U Substitutues xincludes in a DomDocument # php-src/ext/dom/documentfragment.c void DOMDocumentFragment::__construct() U */ PHP_METHOD(domdocumentfragment, __construct) { zval *id; xmlNodePtr nodep = NULL, oldnode = NULL; dom_object *intern; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &id, dom_documentfragment_class_entry) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); nodep = xmlNewDocFragment(NULL); if (!nodep) { php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); RETURN_FALSE; } intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { oldnode = (xmlNodePtr)intern->ptr; if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } /* php_dom_set_object(intern, nodep TSRMLS_CC); void DOMDocumentFragment::appendXML(string data) U */ PHP_METHOD(domdocumentfragment, appendXML) { zval *id; xmlNode *nodep; dom_object *intern; char *data = NULL; int data_len = 0; int err; xmlNodePtr lst; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os&", &id, dom_documentfragment_class_entry, &data, &data_len, UG(utf8_conv)) == FAILURE) { return; } DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); if (dom_node_is_read_only(nodep) == SUCCESS) { php_dom_throw_error(NO_MODIFICATION_ALLOWED_ERR, dom_get_strict_error(intern->document) TSRMLS_CC); RETURN_FALSE; } if (data) { err = xmlParseBalancedChunkMemory(nodep->doc, NULL, NULL, 0, data, &lst); if (err != 0) { RETURN_FALSE; } /* Following needed due to bug in libxml2 <= 2.6.14 ifdef after next libxml release as bug is fixed in their cvs # php-src/ext/dom/domconfiguration.c boolean dom_domconfiguration_can_set_parameter(string name, domuserdata value) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-canSetParameter Since: domdomuserdata dom_domconfiguration_get_parameter(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-getParameter Since: dom_void dom_domconfiguration_set_parameter(string name, domuserdata value) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-property Since: # php-src/ext/dom/domerrorhandler.c dom_boolean dom_domerrorhandler_handle_error(domerror error) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-ERRORS-DOMErrorHandler-handleError Since: # php-src/ext/dom/domimplementation.c DOMDocument dom_domimplementation_create_document(string namespaceURI, string qualifiedName, DOMDocumentType doctype) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Level-2-Core-DOM-createDocument Since: DOM Level 2 DOMDocumentType dom_domimplementation_create_document_type(string qualifiedName, string publicId, string systemId) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Level-2-Core-DOM-createDocType Since: DOM Level 2 DOMNode dom_domimplementation_get_feature(string feature, string version) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementation3-getFeature Since: DOM Level 3 boolean dom_domimplementation_has_feature(string feature, string version) URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-5CED94D7 Since: # php-src/ext/dom/domimplementationlist.c domdomimplementation dom_domimplementationlist_item(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementationList-item Since: # php-src/ext/dom/domimplementationsource.c domdomimplementation dom_domimplementationsource_get_domimplementation(string features) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-getDOMImpl Since: domimplementationlist dom_domimplementationsource_get_domimplementations(string features) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-getDOMImpls Since: # php-src/ext/dom/domstringlist.c domstring dom_domstringlist_item(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMStringList-item Since: # php-src/ext/dom/element.c void DOMElement::__construct(string name, [string value], [string uri]) U */ PHP_METHOD(domelement, __construct) { zval *id; xmlNodePtr nodep = NULL, oldnode = NULL; dom_object *intern; char *name, *value = NULL, *uri = NULL; char *localname = NULL, *prefix = NULL; int errorcode = 0, uri_len = 0; int name_len, value_len = 0, name_valid; xmlNsPtr nsptr = NULL; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os&|s!&s&", &id, dom_element_class_entry, &name, &name_len, UG(utf8_conv), &value, &value_len, UG(utf8_conv), &uri, &uri_len, UG(utf8_conv)) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); name_valid = xmlValidateName((xmlChar *) name, 0); if (name_valid != 0) { php_dom_throw_error(INVALID_CHARACTER_ERR, 1 TSRMLS_CC); RETURN_FALSE; } /* Namespace logic is seperate and only when uri passed in to insure no BC breakage string dom_element_get_attribute(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-666EE0F9 Since: DOMAttr dom_element_get_attribute_node(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-217A91B8 Since: DOMAttr dom_element_get_attribute_node_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElGetAtNodeNS Since: DOM Level 2 string dom_element_get_attribute_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElGetAttrNS Since: DOM Level 2 DOMNodeList dom_element_get_elements_by_tag_name(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1938918D Since: DOMNodeList dom_element_get_elements_by_tag_name_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-A6C90942 Since: DOM Level 2 boolean dom_element_has_attribute(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElHasAttr Since: DOM Level 2 boolean dom_element_has_attribute_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElHasAttrNS Since: DOM Level 2 void dom_element_remove_attribute(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-6D6AC0F9 Since: DOMAttr dom_element_remove_attribute_node(DOMAttr oldAttr) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-D589198 Since: void dom_element_remove_attribute_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElRemAtNS Since: DOM Level 2 void dom_element_set_attribute(string name, string value) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-F68F082 Since: DOMAttr dom_element_set_attribute_node(DOMAttr newAttr) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-887236154 Since: DOMAttr dom_element_set_attribute_node_ns(DOMAttr newAttr) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetAtNodeNS Since: DOM Level 2 void dom_element_set_attribute_ns(string namespaceURI, string qualifiedName, string value) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetAttrNS Since: DOM Level 2 void dom_element_set_id_attribute(string name, boolean isId) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetIdAttr Since: DOM Level 3 void dom_element_set_id_attribute_node(attr idAttr, boolean isId) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetIdAttrNode Since: DOM Level 3 void dom_element_set_id_attribute_ns(string namespaceURI, string localName, boolean isId) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetIdAttrNS Since: DOM Level 3 # php-src/ext/dom/entityreference.c void DOMEntityReference::__construct(string name) U */ PHP_METHOD(domentityreference, __construct) { zval *id; xmlNode *node; xmlNodePtr oldnode = NULL; dom_object *intern; char *name; int name_len, name_valid; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os&", &id, dom_entityreference_class_entry, &name, &name_len, UG(utf8_conv)) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); name_valid = xmlValidateName((xmlChar *) name, 0); if (name_valid != 0) { php_dom_throw_error(INVALID_CHARACTER_ERR, 1 TSRMLS_CC); RETURN_FALSE; } node = xmlNewReference(NULL, name); if (!node) { php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); RETURN_FALSE; } intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { oldnode = dom_object_get_node(intern); if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } php_libxml_increment_node_ptr((php_libxml_node_object *)intern, node, (void *)intern TSRMLS_CC); } } /* }}} end DOMEntityReference::__construct # php-src/ext/dom/namednodemap.c DOMNode dom_namednodemap_get_named_item(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1074577549 Since: DOMNode dom_namednodemap_get_named_item_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getNamedItemNS Since: DOM Level 2 DOMNode dom_namednodemap_item(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-349467F9 Since: DOMNode dom_namednodemap_remove_named_item(string name) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-D58B193 Since: DOMNode dom_namednodemap_remove_named_item_ns(string namespaceURI, string localName) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-removeNamedItemNS Since: DOM Level 2 DOMNode dom_namednodemap_set_named_item(DOMNode arg) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1025163788 Since: DOMNode dom_namednodemap_set_named_item_ns(DOMNode arg) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-setNamedItemNS Since: DOM Level 2 # php-src/ext/dom/namelist.c string dom_namelist_get_name(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getName Since: string dom_namelist_get_namespace_uri(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getNamespaceURI Since: # php-src/ext/dom/node.c string DOMNode::C14N([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) U Canonicalize nodes to a string int DOMNode::C14NFile(string uri [, bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) U Canonicalize nodes to a file int DOMNode::getNodePath() U Gets an xpath for a node DomNode dom_node_append_child(DomNode newChild) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-184E7107 Since: DomNode dom_node_clone_node(boolean deep) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-3A0ED0A4 Since: short dom_node_compare_document_position(DomNode other) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-compareDocumentPosition Since: DOM Level 3 DomNode dom_node_get_feature(string feature, string version) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-getFeature Since: DOM Level 3 DomUserData dom_node_get_user_data(string key) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-getUserData Since: DOM Level 3 boolean dom_node_has_attributes() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-NodeHasAttrs Since: DOM Level 2 boolean dom_node_has_child_nodes() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-810594187 Since: domnode dom_node_insert_before(DomNode newChild, DomNode refChild) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-952280727 Since: boolean dom_node_is_default_namespace(string namespaceURI) U URL: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isDefaultNamespace Since: DOM Level 3 boolean dom_node_is_equal_node(DomNode arg) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-isEqualNode Since: DOM Level 3 boolean dom_node_is_same_node(DomNode other) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-isSameNode Since: DOM Level 3 boolean dom_node_is_supported(string feature, string version); URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Level-2-Core-Node-supports Since: DOM Level 2 string dom_node_lookup_namespace_uri(string prefix) U URL: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI Since: DOM Level 3 string dom_node_lookup_prefix(string namespaceURI) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-lookupNamespacePrefix Since: DOM Level 3 void dom_node_normalize() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-normalize Since: DomNode dom_node_remove_child(DomNode oldChild) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1734834066 Since: DomNode dom_node_replace_child(DomNode newChild, DomNode oldChild) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-785887307 Since: DomUserData dom_node_set_user_data(string key, DomUserData data, userdatahandler handler) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-setUserData Since: DOM Level 3 # php-src/ext/dom/nodelist.c DOMNode dom_nodelist_item(int index) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-844377136 Since: # php-src/ext/dom/php_dom.c somNode dom_import_simplexml(sxeobject node) U Get a simplexml_element object from dom to allow for processing # php-src/ext/dom/processinginstruction.c void DOMProcessingInstruction::__construct(string name, [string value]) U */ PHP_METHOD(domprocessinginstruction, __construct) { zval *id; xmlNodePtr nodep = NULL, oldnode = NULL; dom_object *intern; char *name, *value = NULL; int name_len, value_len, name_valid; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os&|s&", &id, dom_processinginstruction_class_entry, &name, &name_len, UG(utf8_conv), &value, &value_len, UG(utf8_conv)) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); name_valid = xmlValidateName((xmlChar *) name, 0); if (name_valid != 0) { php_dom_throw_error(INVALID_CHARACTER_ERR, 1 TSRMLS_CC); RETURN_FALSE; } nodep = xmlNewPI((xmlChar *) name, (xmlChar *) value); if (!nodep) { php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); RETURN_FALSE; } intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { oldnode = (xmlNodePtr)intern->ptr; if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern TSRMLS_CC); } } /* }}} end DOMProcessingInstruction::__construct # php-src/ext/dom/string_extend.c int dom_string_extend_find_offset16(int offset32) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#i18n-methods-StringExtend-findOffset16 Since: int dom_string_extend_find_offset32(int offset16) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#i18n-methods-StringExtend-findOffset32 Since: # php-src/ext/dom/text.c void DOMText::__construct([string value]) U */ PHP_METHOD(domtext, __construct) { zval *id; xmlNodePtr nodep = NULL, oldnode = NULL; dom_object *intern; char *value = NULL; int value_len; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|s&", &id, dom_text_class_entry, &value, &value_len, UG(utf8_conv)) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); nodep = xmlNewText((xmlChar *) value); if (!nodep) { php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); RETURN_FALSE; } intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { oldnode = (xmlNodePtr)intern->ptr; if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern TSRMLS_CC); } } /* }}} end DOMText::__construct boolean dom_text_is_whitespace_in_element_content() U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Text3-isWhitespaceInElementContent Since: DOM Level 3 DOMText dom_text_replace_whole_text(string content) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Text3-replaceWholeText Since: DOM Level 3 DOMText dom_text_split_text(int offset) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-38853C1D Since: # php-src/ext/dom/userdatahandler.c dom_void dom_userdatahandler_handle(short operation, string key, domobject data, node src, node dst) U URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-handleUserDataEvent Since: # php-src/ext/dom/xpath.c void DOMXPath::__construct(DOMDocument doc) U */ PHP_METHOD(domxpath, __construct) { zval *id, *doc; xmlDocPtr docp = NULL; dom_object *docobj; dom_xpath_object *intern; xmlXPathContextPtr ctx, oldctx; php_set_error_handling(EH_THROW, dom_domexception_class_entry TSRMLS_CC); if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "OO", &id, dom_xpath_class_entry, &doc, dom_document_class_entry) == FAILURE) { php_std_error_handling(); return; } php_std_error_handling(); DOM_GET_OBJ(docp, doc, xmlDocPtr, docobj); ctx = xmlXPathNewContext(docp); if (ctx == NULL) { php_dom_throw_error(INVALID_STATE_ERR, 1 TSRMLS_CC); RETURN_FALSE; } intern = (dom_xpath_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { oldctx = (xmlXPathContextPtr)intern->ptr; if (oldctx != NULL) { php_libxml_decrement_doc_ref((php_libxml_node_object *)intern TSRMLS_CC); xmlXPathFreeContext(oldctx); } xmlXPathRegisterFuncNS (ctx, (const xmlChar *) "functionString", (const xmlChar *) "http://php.net/xpath", dom_xpath_ext_function_string_php); xmlXPathRegisterFuncNS (ctx, (const xmlChar *) "function", (const xmlChar *) "http://php.net/xpath", dom_xpath_ext_function_object_php); intern->ptr = ctx; ctx->userData = (void *)intern; intern->document = docobj->document; php_libxml_increment_doc_ref((php_libxml_node_object *)intern, docp TSRM