📄 migration52.methods.html
字号:
<!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 http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div 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"> <a href="domdocument.registernodeclass.html" class="function">DOMDocument::registerNodeClass()</a> - Register extended class used to create base node type </span> </li> <li class="listitem"> <span class="simpara"> <a href="domelement.setidattribute.html" class="function">DOMElement::setIDAttribute()</a> - Declares the attribute specified by name to be of type ID </span> </li> <li class="listitem"> <span class="simpara"> <a href="domelement.setidattributenode.html" class="function">DOMElement::setIDAttributeNode()</a> - Declares the attribute specified by node to be of type ID </span> </li> <li class="listitem"> <span class="simpara"> <a href="domelement.setidattributens.html" class="function">DOMElement::setIDAttributeNS()</a> - Declares the attribute specified by local name and namespace URI to be of type ID </span> </li> <li class="listitem"> <span class="simpara"> DOMNode::C14N([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) - Canonicalize nodes to a string </span> </li> <li class="listitem"> <span class="simpara"> DOMNode::C14NFile(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"> DOMNode::getNodePath() - Gets an <i>xpath</i> 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"> SoapServer::setObject(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 ArrayObject::asort(void) - Sort the entries by values </span> </li> <li class="listitem"> <span class="simpara"> int ArrayObject::ksort(void) - Sort the entries by key </span> </li> <li class="listitem"> <span class="simpara"> int ArrayObject::natcasesort(void) - Sort the entries by key using case insensitive "natural order" algorithm. </span> </li> <li class="listitem"> <span class="simpara"> int ArrayObject::natsort(void) - Sort the entries by values using "natural order" algorithm. </span> </li> <li class="listitem"> <span class="simpara"> int ArrayObject::uasort(callback cmp_function) - Sort the entries by values using a user defined function </span> </li> <li class="listitem"> <span class="simpara"> int ArrayObject::uksort(callback cmp_function) - Sort the entries by key using a user defined function. </span> </li> <li class="listitem"> <span class="simpara"> ArrayIterator AppendIterator::getArrayIterator() - Get access to inner <i>ArrayIterator</i> </span> </li> <li class="listitem"> <span class="simpara"> int AppendIterator::getIteratorIndex() - Get index of iterator </span> </li> <li class="listitem"> <span class="simpara"> bool CachingIterator::getCache() - Return the cache </span> </li> <li class="listitem"> <span class="simpara"> int CachingIterator::getFlags() - Return the internal flags </span> </li> <li class="listitem"> <span class="simpara"> bool CachingIterator::offsetExists(mixed index) - Returns <b><tt>TRUE</tt></b> if the requested index exists </span> </li> <li class="listitem"> <span class="simpara"> string CachingIterator::offsetGet(mixed index) - Return the internal cache if used </span> </li> <li class="listitem"> <span class="simpara"> void CachingIterator::offsetSet(mixed index, mixed newval) - Set given index in cache </span> </li> <li class="listitem"> <span class="simpara"> void CachingIterator::offsetUnset(mixed index) - Unset given index in cache </span> </li> <li class="listitem"> <span class="simpara"> void CachingIterator::setFlags() - Set the internal flags </span> </li> <li class="listitem"> <span class="simpara"> array("delimiter" =>, "enclosure" =>) SplFileObject::getCsvControl(void) - Get the delimiter and enclosure character used in <a href="function.fgetcsv.html" class="function">fgetcsv()</a> </span> </li> <li class="listitem"> <span class="simpara"> void SplFileObject::setCsvControl([string delimiter = ',' [, string enclosure = '"']]) - Set the delimiter and enclosure character used in <a href="function.fgetcsv.html" class="function">fgetcsv()</a> </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 <a href="function.tidynode-getparent.html" class="link">tidyNode::getParent(void)</a> - 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 XMLReader::setSchema(string filename) - Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first <i>Read()</i> </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"> <a href="function.ziparchive-addemptydir.html" class="link">ZipArchive::addEmptyDir()</a> - Creates an empty directory in the archive </span> </li> </ul> </div><hr /><div 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -