cvs: phpdoc-pl /reference/tokenizer/functions token-get-all.xml

From: Date: Thu, 01 May 2008 11:49:03 +0000
Subject: cvs: phpdoc-pl /reference/tokenizer/functions token-get-all.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-1365@lists.php.net to get a copy of this message
adi Thu May 1 11:49:03 2008 UTC Modified files: /phpdoc-pl/reference/tokenizer/functions token-get-all.xml Log: Update http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tokenizer/functions/token-get-all.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-pl/reference/tokenizer/functions/token-get-all.xml diff -u phpdoc-pl/reference/tokenizer/functions/token-get-all.xml:1.4 phpdoc-pl/reference/tokenizer/functions/token-get-all.xml:1.5 --- phpdoc-pl/reference/tokenizer/functions/token-get-all.xml:1.4 Sat Jun 23 13:29:35 2007 +++ phpdoc-pl/reference/tokenizer/functions/token-get-all.xml Thu May 1 11:49:03 2008 @@ -1,29 +1,30 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.9 Maintainer: dombal Status: ready --> -<!-- $Revision: 1.4 $ --> - <refentry xml:id="function.token-get-all" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>token_get_all</refname> - <refpurpose>Dzieli zadane ¼ród³o na tokeny PHP</refpurpose> - </refnamediv> - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>array</type><methodname>token_get_all</methodname> - <methodparam><type>string</type><parameter>¼ród³o</parameter></methodparam> - </methodsynopsis> - <para> - <function>token_get_all</function> parsuje zadane - <parameter>¼ród³o</parameter>, czyli ci±g znaków zawieraj±cy kod PHP, - zamieniaj±c je na tokeny jêzyka PHP przy u¿yciu analizy leksykalnej - silnika Zend. - </para> - <para> - Listê tokenów identyfikowanych przez parser znajdziesz w <xref - linkend="tokens"/>, mo¿esz tak¿e u¿yæ funkcji - <function>token_name</function> by przet³umaczyæ warto¶æ tokena na jego - nazwê. - </para> +<!-- EN-Revision: 1.11 Maintainer: adi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- CREDITS: dombal --> +<refentry xml:id="function.token-get-all" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>token_get_all</refname> + <refpurpose>Dzieli zadane ¼ród³o na tokeny PHP</refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>token_get_all</methodname> + <methodparam><type>string</type><parameter>¼ród³o</parameter></methodparam> + </methodsynopsis> + <para> + <function>token_get_all</function> parsuje zadane + <parameter>¼ród³o</parameter>, czyli ci±g znaków zawieraj±cy kod PHP, + zamieniaj±c je na tokeny jêzyka PHP przy u¿yciu analizy leksykalnej + silnika Zend. + </para> + <para> + Listê tokenów identyfikowanych przez parser znajdziesz w <xref + linkend="tokens"/>, mo¿esz tak¿e u¿yæ funkcji + <function>token_name</function> by przet³umaczyæ warto¶æ tokena na jego + nazwê. + </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; @@ -46,8 +47,8 @@ Tablica zindentyfikowanych tokenów. Ka¿dy pojedynczy token identyfikowany jest poprzez pojedynczy znak (np.: <literal>;</literal>, <literal>.</literal>, <literal>&gt;</literal>, <literal>!</literal>, etc...), - lub dwuelementow± tablicê zawieraj±c± indeks tokenu w elemencie 0 i - ³±ncuch znaków zawieraj±cy oryginalny token w elemencie 1. + lub trójelementow± tablicê zawieraj±c± indeks tokenu w elemencie 0 i + ³añcuch znaków zawieraj±cy oryginalny token w elemencie 1 i numer linii w elemencie 2. </para> </refsect1> <refsect1 role="examples"> @@ -55,7 +56,7 @@ <para> <example> <title>Przyk³ady u¿ycia <function>token_get_all</function></title> - <programlisting role="php"> + <programlisting role="php"> <![CDATA[ <?php $tokeny = token_get_all('<?php echo; ?>'); /* => array( @@ -72,11 +73,33 @@ $tokeny = token_get_all('/* koment. */'); // => array(array(T_INLINE_HTML, '/* koment. */')); ?> ]]> - </programlisting> - </example> - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.2.2</entry> + <entry>Numer linii jest zwracany w elemencie 2 + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.doc.pl (#1365) next »