<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>New Methods</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration52.functions.html">New Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration52.removed-extensions.html">Removed Extensions</a></div> <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="migration52.methods" class="section"> <h2 class="title">New Methods</h2> <p class="para"> New methods were introduced in 5.2.0: </p> <p class="para"><a href="book.dom.html" class="link">dom</a>:</p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> <span class="function"><a href="domdocument.registernodeclass.html" class="function">DOMDocument::registerNodeClass()</a></span> - Register extended class used to create base node type </span> </li> <li class="listitem"> <span class="simpara"> <span class="function"><a href="domelement.setidattribute.html" class="function">DOMElement::setIDAttribute()</a></span> - Declares the attribute specified by name to be of type ID </span> </li> <li class="listitem"> <span class="simpara"> <span class="function"><a href="domelement.setidattributenode.html" class="function">DOMElement::setIDAttributeNode()</a></span> - Declares the attribute specified by node to be of type ID </span> </li> <li class="listitem"> <span class="simpara"> <span class="function"><a href="domelement.setidattributens.html" class="function">DOMElement::setIDAttributeNS()</a></span> - Declares the attribute specified by local name and namespace URI to be of type ID </span> </li> <li class="listitem"> <span class="simpara"> <span class="methodname"><a href="domnode.c14n.html" class="methodname">DOMNode::C14N()</a></span>([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) - Canonicalize nodes to a string </span> </li> <li class="listitem"> <span class="simpara"> <span class="methodname"><a href="domnode.c14nfile.html" class="methodname">DOMNode::C14NFile()</a></span>(string uri [, bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) - Canonicalize nodes to a file </span> </li> <li class="listitem"> <span class="simpara"> <span class="methodname"><a href="domnode.getnodepath.html" class="methodname">DOMNode::getNodePath()</a></span>() - Gets an <em>xpath</em> for a node </span> </li> </ul> <p class="para"><a href="ref.soap.html" class="link">soap</a>:</p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> <span class="methodname"><a href="soapserver.setobject.html" class="methodname">SoapServer::setObject()</a></span>(object obj) - Sets object which will handle SOAP requests </span> </li> </ul> <p class="para"><a href="ref.spl.html" class="link">spl</a>:</p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> int <span class="methodname"><a href="arrayobject.asort.html" class="methodname">ArrayObject::asort()</a></span>(void) - Sort the entries by values </span> </li> <li class="listitem"> <span class="simpara"> int <span class="methodname"><a href="arrayobject.ksort.html" class="methodname">ArrayObject::ksort()</a></span>(void) - Sort the entries by key </span> </li> <li class="listitem"> <span class="simpara"> int <span class="methodname"><a href="arrayobject.natcasesort.html" class="methodname">ArrayObject::natcasesort()</a></span>(void) - Sort the entries by key using case insensitive "natural order" algorithm. </span> </li> <li class="listitem"> <span class="simpara"> int <span class="methodname"><a href="arrayobject.natsort.html" class="methodname">ArrayObject::natsort()</a></span>(void) - Sort the entries by values using "natural order" algorithm. </span> </li> <li class="listitem"> <span class="simpara"> int <span class="methodname"><a href="arrayobject.uasort.html" class="methodname">ArrayObject::uasort()</a></span>(callback cmp_function) - Sort the entries by values using a user defined function </span> </li> <li class="listitem"> <span class="simpara"> int <span class="methodname"><a href="arrayobject.uksort.html" class="methodname">ArrayObject::uksort()</a></span>(callback cmp_function) - Sort the entries by key using a user defined function. </span> </li> <li class="listitem"> <span class="simpara"> ArrayIterator <span class="methodname"><a href="appenditerator.getarrayiterator.html" class="methodname">AppendIterator::getArrayIterator()</a></span>() - Get access to inner <em>ArrayIterator</em> </span> </li> <li class="listitem"> <span class="simpara"> int <span class="methodname"><a href="appenditerator.getiteratorindex.html" class="methodname">AppendIterator::getIteratorIndex()</a></span>() - Get index of iterator </span> </li> <li class="listitem"> <span class="simpara"> bool <span class="methodname"><a href="cachingiterator.getcache.html" class="methodname">CachingIterator::getCache()</a></span>() - Return the cache </span> </li> <li class="listitem"> <span class="simpara"> int <span class="methodname"><a href="cachingiterator.getflags.html" class="methodname">CachingIterator::getFlags()</a></span>() - Return the internal flags </span> </li> <li class="listitem"> <span class="simpara"> bool <span class="methodname"><a href="cachingiterator.offsetexists.html" class="methodname">CachingIterator::offsetExists()</a></span>(mixed index) - Returns <strong><code>TRUE</code></strong> if the requested index exists </span> </li> <li class="listitem"> <span class="simpara"> string <span class="methodname"><a href="cachingiterator.offsetget.html" class="methodname">CachingIterator::offsetGet()</a></span>(mixed index) - Return the internal cache if used </span> </li> <li class="listitem"> <span class="simpara"> void <span class="methodname"><a href="cachingiterator.offsetset.html" class="methodname">CachingIterator::offsetSet()</a></span>(mixed index, mixed newval) - Set given index in cache </span> </li> <li class="listitem"> <span class="simpara"> void <span class="methodname"><a href="cachingiterator.offsetunset.html" class="methodname">CachingIterator::offsetUnset()</a></span>(mixed index) - Unset given index in cache </span> </li> <li class="listitem"> <span class="simpara"> void <span class="methodname"><a href="cachingiterator.setflags.html" class="methodname">CachingIterator::setFlags()</a></span>() - Set the internal flags </span> </li> <li class="listitem"> <span class="simpara"> array("delimiter" =>, "enclosure" =>) <span class="methodname"><a href="splfileobject.getcsvcontrol.html" class="methodname">SplFileObject::getCsvControl()</a></span>(void) - Get the delimiter and enclosure character used in <span class="function"><a href="function.fgetcsv.html" class="function">fgetcsv()</a></span> </span> </li> <li class="listitem"> <span class="simpara"> void <span class="methodname"><a href="splfileobject.setcsvcontrol.html" class="methodname">SplFileObject::setCsvControl()</a></span>([string delimiter = ',' [, string enclosure = '"']]) - Set the delimiter and enclosure character used in <span class="function"><a href="function.fgetcsv.html" class="function">fgetcsv()</a></span> </span> </li> </ul> <p class="para"><a href="ref.tidy.html" class="link">Tidy</a></p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> tidyNode <span class="methodname"><a href="tidynode.getparent.html" class="methodname">tidyNode::getParent()</a></span>() - Returns the parent node of the current node (Added in PHP 5.2.2) </span> </li> </ul> <p class="para"><a href="book.xmlreader.html" class="link">XMLReader</a></p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> boolean <span class="function"><a href="xmlreader.setschema.html" class="function">XMLReader::setSchema()</a></span> - Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first <span class="function"><a href="xmlreader.read.html" class="function">XMLReader::read()</a></span> </span> </li> </ul> <p class="para"><a href="ref.zip.html" class="link">zip</a>:</p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> <span class="methodname"><a href="ziparchive.addemptydir.html" class="methodname">ZipArchive::addEmptyDir()</a></span>() - Creates an empty directory in the archive </span> </li> </ul> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration52.functions.html">New Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration52.removed-extensions.html">Removed Extensions</a></div> <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>