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

From: Date: Thu, 20 Apr 2006 00:01:56 +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-900@lists.php.net to get a copy of this message
leszek Thu Apr 20 00:01:56 2006 UTC Modified files: /phpdoc-pl/reference/tokenizer/functions token-get-all.xml Log: [adi] update to rev. 1.9 http://cvs.php.net/viewcvs.cgi/phpdoc-pl/reference/tokenizer/functions/token-get-all.xml?r1=1.2&r2=1.3&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.2 phpdoc-pl/reference/tokenizer/functions/token-get-all.xml:1.3 --- phpdoc-pl/reference/tokenizer/functions/token-get-all.xml:1.2 Fri Feb 25 01:04:22 2005 +++ phpdoc-pl/reference/tokenizer/functions/token-get-all.xml Thu Apr 20 00:01:56 2006 @@ -1,40 +1,63 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.7 Maintainer: dombal Status: ready --> -<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: dombal Status: ready --> +<!-- $Revision: 1.3 $ --> <refentry id="function.token-get-all"> <refnamediv> <refname>token_get_all</refname> <refpurpose>Dzieli zadane ¼ród³o na tokeny PHP</refpurpose> </refnamediv> - <refsect1> - <title>Opis</title> + <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> - <simpara> + <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. Funkcja ta zwraca tablicê identyfikatorów tokenów. Ka¿dy - identyfikator tokena jest allbo pojedynczym znakiem (np.: - <constant>;</constant>, <constant>.</constant>, - <constant>&gt;</constant>, <constant>!</constant>, itd...), albo - dwuelementow± tablic± zawieraj±c± indeks tokena w elemencie 0, i - zawarto¶æ oryginalengo tokena w postaci ci±gu znakowego w elemencie 1. - </simpara> - <simpara> - Listê tokenów identyfikowanych przez parser znajdziesz w <xref + 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ê. - </simpara> + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>¼ród³o</parameter></term> + <listitem> + <para> + ¬ród³o PHP do sparsowania. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 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. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> <example> <title>Przyk³ady u¿ycia <function>token_get_all</function></title> <programlisting role="php"> <![CDATA[ <?php - $tokeny = token_get_all('<?php'); // => array(array(T_OPEN_TAG, '<?')); $tokeny = token_get_all('<?php echo; ?>'); /* => array( array(T_OPEN_TAG, '<?php'), array(T_ECHO, 'echo'), @@ -51,6 +74,7 @@ ]]> </programlisting> </example> + </para> </refsect1> </refentry>

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