Source of: /manual/en/migration52.methods.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration52.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'migration52.methods.php',
1 => 'New Methods',
),
'up' =>
array (
0 => 'migration52.php',
1 => 'Migrating from PHP 5.1.x to PHP 5.2.x',
),
'prev' =>
array (
0 => 'migration52.functions.php',
1 => 'New Functions',
),
'next' =>
array (
0 => 'migration52.removed-extensions.php',
1 => 'Removed Extensions',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<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.php" class="link">dom</a>:</p>
<ul class="itemizedlist">
<li class="listitem">
<span class="simpara">
<a href="domdocument.registernodeclass.php" 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.php" 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.php" 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.php" 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">
<span class="methodname"><b>DOMNode::C14N</b></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"><b>DOMNode::C14NFile</b></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"><b>DOMNode::getNodePath</b></span>()
- Gets an <i>xpath</i> for a node
</span>
</li>
</ul>
<p class="para"><a href="ref.soap.php" class="link">soap</a>:</p>
<ul class="itemizedlist">
<li class="listitem">
<span class="simpara">
<span class="methodname"><a href="soapserver.setobject.php" class="function">SoapServer::setObject</a></span>(object obj)
- Sets object which will handle SOAP requests
</span>
</li>
</ul>
<p class="para"><a href="ref.spl.php" class="link">spl</a>:</p>
<ul class="itemizedlist">
<li class="listitem">
<span class="simpara">
int <span class="methodname"><a href="arrayobject.asort.php" class="function">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.php" class="function">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.php" class="function">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.php" class="function">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.php" class="function">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.php" class="function">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.php" class="function">AppendIterator::getArrayIterator</a></span>()
- Get access to inner <i>ArrayIterator</i>
</span>
</li>
<li class="listitem">
<span class="simpara">
int <span class="methodname"><a href="appenditerator.getiteratorindex.php" class="function">AppendIterator::getIteratorIndex</a></span>()
- Get index of iterator
</span>
</li>
<li class="listitem">
<span class="simpara">
bool <span class="methodname"><a href="cachingiterator.getcache.php" class="function">CachingIterator::getCache</a></span>()
- Return the cache
</span>
</li>
<li class="listitem">
<span class="simpara">
int <span class="methodname"><a href="cachingiterator.getflags.php" class="function">CachingIterator::getFlags</a></span>()
- Return the internal flags
</span>
</li>
<li class="listitem">
<span class="simpara">
bool <span class="methodname"><a href="cachingiterator.offsetexists.php" class="function">CachingIterator::offsetExists</a></span>(mixed index)
- Returns <b><tt class="constant">TRUE</tt></b> if the requested index exists
</span>
</li>
<li class="listitem">
<span class="simpara">
string <span class="methodname"><a href="cachingiterator.offsetget.php" class="function">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.php" class="function">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.php" class="function">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.php" class="function">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.php" class="function">SplFileObject::getCsvControl</a></span>(void)
- Get the delimiter and enclosure character used in <a href="function.fgetcsv.php" class="function">fgetcsv()</a>
</span>
</li>
<li class="listitem">
<span class="simpara">
void <span class="methodname"><a href="splfileobject.setcsvcontrol.php" class="function">SplFileObject::setCsvControl</a></span>([string delimiter = ',' [, string enclosure = '"']])
- Set the delimiter and enclosure character used in <a href="function.fgetcsv.php" class="function">fgetcsv()</a>
</span>
</li>
</ul>
<p class="para"><a href="ref.tidy.php" class="link">Tidy</a></p>
<ul class="itemizedlist">
<li class="listitem">
<span class="simpara">
tidyNode <span class="methodname"><a href="tidynode.getparent.php" class="function">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.php" class="link">XMLReader</a></p>
<ul class="itemizedlist">
<li class="listitem">
<span class="simpara">
boolean <a href="xmlreader.setschema.php" class="function">XMLReader::setSchema()</a>
- Use W3C XSD schema to validate the document as it is processed. Activation is
only possible before the first <a href="xmlreader.read.php" class="function">XMLReader::read()</a>
</span>
</li>
</ul>
<p class="para"><a href="ref.zip.php" class="link">zip</a>:</p>
<ul class="itemizedlist">
<li class="listitem">
<span class="simpara">
<span class="methodname"><a href="function.ziparchive-addemptydir.php" class="function">ZipArchive::addEmptyDir</a></span>()
- Creates an empty directory in the archive
</span>
</li>
</ul>
</div><?php manual_footer(); ?>