PHP Developer’s Dictionary IT-SC book 295 string hw_array2objrec (array object_array) Description The hw_array2objrec() function, which was added in PHP 3.0.4 and PHP 4.0, converts the given object_array into an object record. hw_children() Syntax array_hw_children (int connection, int objectID) Description The hw_children() function, which was added in PHP 3.0.3 and PHP 4.0, examines the collection identified by the objectID and returns an array of object IDs for all the child documents and collections for that objectID . hw_childrenobj() Syntax array hw_childrenobj (int connection , int objectID ) Description The hw_childrenobj() function, which was added in PHP 3.0.3 and PHP 4.0, examines the collection identified by the objectID and returns an array of object records for all the child documents and collections for that objectID . hw_close() Syntax int hw_close (int connection) Description PHP Developer’s Dictionary IT-SC book 296 The hw_close() function, which was added in PHP 3.0.3 and PHP 4.0, closes the connection to a Hyperwave server specified by the connection index. Returns TRUE if successful, and FALSE otherwise. hw_connect() Syntax int hw_connect (string host, int port, string username, string password) Description The hw_connect() function, which was added in PHP 3.0.3 and PHP 4.0, tries to establish a connection with a Hyperwave server. If successful, the function returns the index of the connection that is used for subsequent calls to the server; if a connection cannot be established, the function returns FALSE. All string parameters should be quoted. If the optional username and password are omitted, an anonymous connection attempt will be made. hw_cp() Syntax int hw_cp (int connection, array object id array, int destination id) Description The hw_cp() function, which was added in PHP 3.0.3 and PHP 4.0, copies the objects specified in the object_id_array to the collection specified by the destination_id . The return value represents the number of objects that were copied. hw_deleteobject() Syntax int hw_deleteobject (int connection, int object_to_delete) Description PHP Developer’s Dictionary IT-SC book 297 The hw_deleteobject() function, which was added in PHP 3.0.3 and PHP 4.0, deletes the object referenced by the object_to_delete parameter and returns TRUE if successful, FALSE otherwise. hw_docbyanchor() Syntax int hw_docbyanchor (int connection, int anchorID) Description The hw_docbyanchor() function, which was added in PHP 3.0.3 and PHP 4.0, returns the object ID of the document to which the anchorID belongs. hw_docbyanchorobj() Syntax string hw_docbyanchorobj (int connection, int anchored) Description The hw_docbyanchorobj() function, which was added in PHP 3.0.3 and PHP 4.0, returns the object record of the document to which the anchorID belongs. hw_documentattributes() Syntax string hw_documentattributes (int hw document) Description The hw_documentattributes() function, which was added in PHP 3.0.3 and PHP 4.0, returns the object record for the document specified by the hw_document parameter. hw_documentbodytag() Syntax PHP Developer’s Dictionary IT-SC book 298 string hw_documentbodytag (int hw_document) Description The hw_documentbodytag() function, which was added in PHP 3.0.3 and PHP 4.0, returns the corresponding BODY tag for the document specified by the hw_document parameter. If the document is comprised of HTML, the BODY tag should be printed before the document. hw_documentcontent() Syntax string hw_documentcontent(int hw_document) Description The hw_documentcontent() function, which was added in PHP 3.0.3 and PHP 4.0, returns the contents for the hw_docoment . If the document is HTML based, everything after the BODY tag is returned because the contents of the HEAD and BODY tags are stored in the document's object record. hw_documentsetcontent() Syntax string hw_documentsetcontent (int hw_document, string content) Description The hw_documentsetcontent() function, which was added in PHP 3.0.8, is used to set the contents of the hw_document to content if it doesn't exist, or replace the contents of the document if it already does exist. If the document is HTML, the content refers to everything after the BODY tag because the HEAD and BODY tags are stored in the object record. hw_documentsize() Syntax PHP Developer’s Dictionary IT-SC book 299 int hw_documentsize (int hw document) Description The hw_documentsize() function, which was added in PHP 3.0.3 and PHP 4.0b1, returns the size of the hw_document in bytes. hw_errormsg() Syntax string hw_errormsg (int connection) Description The hw_errormsg() function, which was added in PHP 3.0.3 and PHP 4.0, returns a string containing the error message that was generated for the specified connection 's last command or "No Error" if the last command was successful. hw_edittext() Syntax int hw_edittext (int connection, int hw_document) Description The hw_edittext() function, which was added in PHP 3.0.3 and PHP 4.0, uploads the text-only hw_document to the server. The object record of this document cannot be changed while the document is being edited. Note that the control connection is blocked during the upload to the server. hw_error() Syntax int hw_error (int connection) Description . was added in PHP 3.0.3 and PHP 4.0, returns the object record of the document to which the anchorID belongs. hw_documentattributes() Syntax string hw_documentattributes (int hw document) . Description The hw_documentattributes() function, which was added in PHP 3.0.3 and PHP 4.0, returns the object record for the document specified by the hw_document parameter. hw_documentbodytag(). Syntax PHP Developer’s Dictionary IT-SC book 298 string hw_documentbodytag (int hw_document) Description The hw_documentbodytag() function, which was added in PHP 3.0.3 and PHP 4.0,