Migration52/methods-Phpdoc专题

New Methods

New methods were introduced in 5.2.0:

dom:

  • <span class="function">DOMDocument::registerNodeClass - Register extended class used to create base node type
  • <span class="function">DOMElement::setIDAttribute - Declares the attribute specified by name to be of type ID
  • <span class="function">DOMElement::setIDAttributeNode - Declares the attribute specified by node to be of type ID
  • <span class="function">DOMElement::setIDAttributeNS - Declares the attribute specified by local name and namespace URI to be of type ID
  • <span class="methodname">DOMNode::C14N([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) - Canonicalize nodes to a string
  • <span class="methodname">DOMNode::C14NFile(string uri [, bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) - Canonicalize nodes to a file
  • <span class="methodname">DOMNode::getNodePath() - Gets an xpath for a node

soap:

  • <span class="methodname">SoapServer::setObject(object obj) - Sets object which will handle SOAP requests

spl:

  • int <span class="methodname">ArrayObject::asort(void) - Sort the entries by values
  • int <span class="methodname">ArrayObject::ksort(void) - Sort the entries by key
  • int <span class="methodname">ArrayObject::natcasesort(void) - Sort the entries by key using case insensitive "natural order" algorithm.
  • int <span class="methodname">ArrayObject::natsort(void) - Sort the entries by values using "natural order" algorithm.
  • int <span class="methodname">ArrayObject::uasort(callback cmp_function) - Sort the entries by values using a user defined function
  • int <span class="methodname">ArrayObject::uksort(callback cmp_function) - Sort the entries by key using a user defined function.
  • ArrayIterator <span class="methodname">AppendIterator::getArrayIterator() - Get access to inner ArrayIterator
  • int <span class="methodname">AppendIterator::getIteratorIndex() - Get index of iterator
  • bool <span class="methodname">CachingIterator::getCache() - Return the cache
  • int <span class="methodname">CachingIterator::getFlags() - Return the internal flags
  • bool <span class="methodname">CachingIterator::offsetExists(mixed index) - Returns true if the requested index exists
  • string <span class="methodname">CachingIterator::offsetGet(mixed index) - Return the internal cache if used
  • void <span class="methodname">CachingIterator::offsetSet(mixed index, mixed newval) - Set given index in cache
  • void <span class="methodname">CachingIterator::offsetUnset(mixed index) - Unset given index in cache
  • void <span class="methodname">CachingIterator::setFlags() - Set the internal flags
  • array("delimiter" =>, "enclosure" =>) <span class="methodname">SplFileObject::getCsvControl(void) - Get the delimiter and enclosure character used in <span class="function">fgetcsv
  • void <span class="methodname">SplFileObject::setCsvControl([string delimiter = ',' [, string enclosure = '"']]) - Set the delimiter and enclosure character used in <span class="function">fgetcsv

Tidy

  • tidyNode <span class="methodname">tidyNode::getParent() - Returns the parent node of the current node (Added in PHP 5.2.2)

XMLReader

  • boolean <span class="function">XMLReader::setSchema - Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first <span class="function">XMLReader::read

zip:

  • <span class="methodname">ZipArchive::addEmptyDir() - Creates an empty directory in the archive

本站为非盈利网站,作品由网友提供上传,如无意中有侵犯您的版权,请联系删除