<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >New Methods</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="Migrating from PHP 5.1.x to PHP 5.2.x" HREF="migration52.html"><LINK REL="PREVIOUS" TITLE="New Functions" HREF="migration52.functions.html"><LINK REL="NEXT" TITLE="Removed Extensions" HREF="migration52.removed-extensions.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="section" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="migration52.functions.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Apêndice B. Migrating from PHP 5.1.x to PHP 5.2.x</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="migration52.removed-extensions.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="migration52.methods" >New Methods</A ></H1 ><P > New methods were introduced in 5.2.0: </P ><P ><A HREF="ref.dom.html" >dom</A >:</P ><P ></P ><UL ><LI ><P > <A HREF="function.dom-domdocument-registernodeclass.html" ><B CLASS="function" >DOMDocument::registerNodeClass()</B ></A > - Register extended class used to create base node type </P ></LI ><LI ><P > <A HREF="function.dom-domelement-setidattribute.html" ><B CLASS="function" >DOMElement::setIDAttribute()</B ></A > - Declares the attribute specified by name to be of type ID </P ></LI ><LI ><P > <A HREF="function.dom-domelement-setidattributenode.html" ><B CLASS="function" >DOMElement::setIDAttributeNode()</B ></A > - Declares the attribute specified by node to be of type ID </P ></LI ><LI ><P > <A HREF="function.dom-domelement-setidattributens.html" ><B CLASS="function" >DOMElement::setIDAttributeNS()</B ></A > - Declares the attribute specified by local name and namespace URI to be of type ID </P ></LI ><LI ><P > DOMNode::C14N([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) - Canonicalize nodes to a string </P ></LI ><LI ><P > DOMNode::C14NFile(string uri [, bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) - Canonicalize nodes to a file </P ></LI ><LI ><P > DOMNode::getNodePath() - Gets an xpath for a node </P ></LI ></UL ><P ><A HREF="ref.soap.html" >soap</A >:</P ><P ></P ><UL ><LI ><P > SoapServer::setObject(object obj) - Sets object which will handle SOAP requests </P ></LI ></UL ><P ><A HREF="ref.spl.html" >spl</A >:</P ><P ></P ><UL ><LI ><P > int ArrayObject::asort(void) - Sort the entries by values </P ></LI ><LI ><P > int ArrayObject::ksort(void) - Sort the entries by key </P ></LI ><LI ><P > int ArrayObject::natcasesort(void) - Sort the entries by key using case insensitive "natural order" algorithm. </P ></LI ><LI ><P > int ArrayObject::natsort(void) - Sort the entries by values using "natural order" algorithm. </P ></LI ><LI ><P > int ArrayObject::uasort(callback cmp_function) - Sort the entries by values user defined function </P ></LI ><LI ><P > int ArrayObject::uksort(callback cmp_function) - Sort the entries by key using user defined function. </P ></LI ><LI ><P > ArrayIterator AppendIterator::getArrayIterator() - Get access to inner ArrayIterator </P ></LI ><LI ><P > int AppendIterator::getIteratorIndex() - Get index of iterator </P ></LI ><LI ><P > bool CachingIterator::getCache() - Return the cache </P ></LI ><LI ><P > int CachingIterator::getFlags() - Return the internal flags </P ></LI ><LI ><P > bool CachingIterator::offsetExists(mixed index) - Return whether the requested index exists </P ></LI ><LI ><P > string CachingIterator::offsetGet(mixed index) - Return the internal cache if used </P ></LI ><LI ><P > void CachingIterator::offsetSet(mixed index, mixed newval) - Set given index in cache </P ></LI ><LI ><P > void CachingIterator::offsetUnset(mixed index) - Unset given index in cache </P ></LI ><LI ><P > void CachingIterator::setFlags() - Set the internal flags </P ></LI ><LI ><P > array("delimiter" =>, "enclosure" =>) SplFileObject::getCsvControl(void) - Get the delimiter and enclosure character used in fgetcsv </P ></LI ><LI ><P > void SplFileObject::setCsvControl([string delimiter = ',' [, string enclosure = '"']]) - Set the delimiter and enclosure character used in fgetcsv </P ></LI ><LI ><P > boolean XMLReader::setSchema(string filename) - Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read() </P ></LI ></UL ><P ><A HREF="ref.zip.html" >zip</A >:</P ><P ></P ><UL ><LI ><P > bool ZipArchive::addEmptyDir(string dirname) - Creates an empty directory in the archive </P ></LI ></UL ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="migration52.functions.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="migration52.removed-extensions.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >New Functions</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="migration52.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Removed Extensions</TD ></TR ></TABLE ></DIV ></BODY ></HTML >