Site Admin
Joined: 13 Jul 2003 |
Posts: 8342 |
|
|
|
Posted: Sun May 28, 2006 8:44 am |
|
|
|
|
|
This topic http://forum.nusphere.com/code-completion-for-php-spl-dom-pdo-and-dom-t1733.html describes how to enhance Code Completion with SPL library functions, classes and interfaces.
The same way you can add support for DOM. Unfortunately, nobody wrote prototypes for it, so let me try to do it for you
class DOMAttr {
/**
* @param name string
* @param value string
*/
function __construct($name, $value = null) {}
function isId() {}
};
class DOMCdataSection {
/**
* @param value string
*/
function __construct($value) {}
};
class DOMComment {
/**
* @param value string
*/
function __construct($value = null) {}
};
class DOMDocument {
/**
* @param version string
* @param encoding string
*/
function __construct($version = null, $encoding = null) {}
/**
* @return DOMNode
* @param source DOMNode
*/
function adoptNode($source) {}
/**
* @return DOMAttr
* @param name string
*/
function createAttribute($name) {}
/**
* @return DOMAttr
* @param namespaceURI string
* @param qualifiedName string
*/
function createAttributeNS($namespaceURI, $qualifiedName) {}
/**
* @return DOMElement
* @param tagName string
* @param value string
*/
function createElement($tagName, $value = null) {}
/**
* @return DOMElement
* @param namespaceURI string
* @param qualifiedName string
* @param value string
*/
function createElementNS($namespaceURI, $qualifiedName, $value = null) {}
/**
* @return DOMDocumentFragment
*/
function createDocumentFragment() {}
/**
* @return DOMText
* @param data string
*/
function createTextNode($data) {}
/**
* @return DOMComment
* @param data string
*/
function createComment($data) {}
/**
* @return DOMCdataSection
* @param data string
*/
function createCDATASection($data) {}
/**
* @return DOMProcessingInstruction
* @param target string
* @param data string
*/
function createProcessingInstruction($target, $data) {}
/**
* @return DOMEntityReference
* @param name string
*/
function createEntityReference($name) {}
/**
* @return DOMNodeList
* @param tagname string
*/
function getElementsByTagName($tagname) {}
/**
* @return DOMNodeList
* @param namespaceURI string
* @param localName string
*/
function getElementsByTagNameNS($namespaceURI, $localName) {}
/**
* @return DOMNode
* @param importedNode DOMNode
* @param deep boolean
*/
function importNode($importedNode, $deep) {}
/**
* @return DOMElement
* @param elementId string
*/
function getElementById($elementId) {}
function normalizeDocument() {}
/**
* @return DOMNode
* @param n node
* @param namespaceURI string
* @param qualifiedName string
*/
function renameNode($n, $namespaceURI, $qualifiedName) {}
/**
* @param file string
*/
function save($file) {}
/**
* @param n node
*/
function saveXML($n = null) {}
/**
* @return boolean
*/
function validate() {}
/**
* @param options int
*/
function xinclude($options = null) {}
/**
* @return string
*/
function saveHTML() {}
/**
* @param file string
*/
function saveHTMLFile($file) {}
/**
* @return boolean
* @param filename string
*/
function schemaValidate($filename) {}
/**
* @return boolean
* @param filename string
*/
function relaxNGValidate($filename) {}
/**
* @return boolean
* @param source string
*/
function relaxNGValidateSource($source) {}
};
class DOMDocumentFragment {
function __construct() {}
/**
* @param data string
*/
function appendXML($data) {}
};
class DOMElement {
/**
* @param name string
* @param value string
* @param uri string
*/
function __construct($name, $value = null, $uri = null) {}
/**
* @return string
* @param name string
*/
function getAttribute($name) {}
/**
* @param name string
* @param value string
*/
function setAttribute($name, $value) {}
/**
* @param name string
*/
function removeAttribute($name) {}
/**
* @return DOMAttr
* @param name string
*/
function getAttributeNode($name) {}
/**
* @return DOMAttr
* @param newAttr DOMAttr
*/
function setAttributeNode($newAttr) {}
/**
* @return DOMAttr
* @param oldAttr DOMAttr
*/
function removeAttributeNode($oldAttr) {}
/**
* @return DOMNodeList
* @param name string
*/
function getElementsByTagName($name) {}
/**
* @return string
* @param namespaceURI string
* @param localName string
*/
function getAttributeNS($namespaceURI, $localName) {}
/**
* @return void
* @param namespaceURI string
* @param qualifiedName string
* @param value string
*/
function setAttributeNS($namespaceURI, $qualifiedName, $value) {}
/**
* @return void
* @param namespaceURI string
* @param localName string
*/
function removeAttributeNS($namespaceURI, $localName) {}
/**
* @return DOMAttr
* @param namespaceURI string
* @param localName string
*/
function getAttributeNodeNS($namespaceURI, $localName) {}
/**
* @return DOMAttr
* @param newAttr DOMAttr
*/
function setAttributeNodeNS($newAttr) {}
/**
* @return DOMNodeList
* @param namespaceURI string
* @param localName string
*/
function getElementsByTagNameNS($namespaceURI, $localName) {}
/**
* @return boolean
* @param name string
*/
function hasAttribute($name) {}
/**
* @return boolean
* @param namespaceURI string
* @param localName string
*/
function hasAttributeNS($namespaceURI, $localName) {}
/**
* @param name string
* @param isId boolean
*/
function setIdAttribute($name, $isId) {}
/**
* @param namespaceURI string
* @param localName string
* @param isId boolean
*/
function setIdAttributeNS($namespaceURI, $localName, $isId) {}
/**
* @param idAttr attr
* @param isId boolean
*/
function setIdAttributeNode($idAttr, $isId) {}
};
class DOMEntityReference {
/**
* @param name string
*/
function __construct($name) {}
};
class DOMProcessingInstruction {
/**
* @param name string
* @param value string
*/
function __construct($name, $value = null) {}
};
class DOMText {
/**
* @param value string
*/
function __construct($value = null) {}
/**
* @return DOMText
* @param offset int
*/
function splitText($offset) {}
/**
* @return boolean
*/
function isWhitespaceInElementContent() {}
/**
* @return boolean
*/
function isElementContentWhitespace() {}
/**
* @return DOMText
* @param content string
*/
function replaceWholeText($content) {}
};
class DOMXPath {
/**
* @param doc DOMDocument
*/
function __construct($doc) {}
}; |
|
|