cvs: phpdoc /en/reference/dom versions.xml /en/reference/dom/domnode getlineno.xml

From: Date: Sun, 28 Jun 2009 16:07:04 +0000
Subject: cvs: phpdoc /en/reference/dom versions.xml /en/reference/dom/domnode getlineno.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4265@lists.php.net to get a copy of this message
kalle Sun Jun 28 16:07:04 2009 UTC Added files: /phpdoc/en/reference/dom/domnode getlineno.xml Modified files: /phpdoc/en/reference/dom versions.xml Log: Documented DOMNode::getLineNo() http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dom/versions.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/dom/versions.xml diff -u phpdoc/en/reference/dom/versions.xml:1.2 phpdoc/en/reference/dom/versions.xml:1.3 --- phpdoc/en/reference/dom/versions.xml:1.2 Sat Feb 28 23:51:41 2009 +++ phpdoc/en/reference/dom/versions.xml Sun Jun 28 16:07:04 2009 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- Do NOT translate this file --> @@ -103,6 +103,7 @@ <function name='domnode::clonenode' from='PHP 5'/> <function name='domnode::comparedocumentposition' from='PHP 5'/> <function name='domnode::getfeature' from='PHP 5'/> + <function name='domnode::getlineno' from='PHP 5 &gt;= 5.3.0'/> <function name='domnode::getnodepath' from='PHP 5 &gt;= 5.2.0'/> <function name='domnode::getuserdata' from='PHP 5'/> <function name='domnode::hasattributes' from='PHP 5'/> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dom/domnode/getlineno.xml?view=markup&rev=1.1 Index: phpdoc/en/reference/dom/domnode/getlineno.xml +++ phpdoc/en/reference/dom/domnode/getlineno.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <refentry xml:id="domnode.getlineno" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>DOMNode::getLineNo</refname> <refpurpose>Get line number for a node</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>int</type><methodname>DOMNode::getLineNo</methodname> <void /> </methodsynopsis> <para> Gets line number for where the node is defined. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Always returns the line number where the node was defined in. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title><methodname>DOMNode::getLineNo</methodname> example</title> <programlisting role="php"> <![CDATA[ <?php // XML dump for below exmaple $xml = <<<XML <?xml version="1.0" encoding="ISO-8859-1"?> <root> <node /> </root> XML; // Create a new DOMDocument instance $dom = new DOMDocument; // Load the XML $dom->loadXML($xml); // Print where the line where the 'node' element was defined in printf('The <node> tag is defined in line %d', $dom->getElementsByTagName('node')->item(0)->getLineNo()); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ The <node> tag is defined in line 3 ]]> </screen> </example> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

« previous php.doc.cvs (#4265) next »