luk Thu May 9 17:15:33 2002 EDT
Modified files:
/phpdoc-cs/language control-structures.xml
Log:
Index: phpdoc-cs/language/control-structures.xml
diff -u phpdoc-cs/language/control-structures.xml:1.5
phpdoc-cs/language/control-structures.xml:1.6
--- phpdoc-cs/language/control-structures.xml:1.5 Fri Apr 26 16:35:27 2002
+++ phpdoc-cs/language/control-structures.xml Thu May 9 17:15:33 2002
@@ -938,39 +938,34 @@
<sect1 id="function.return">
<title>return</title>
<simpara>
- If called from within a function, the <function>return</function>
- statement immediately ends execution of the current function, and
- returns its argument as the value of the function
- call. <function>return</function> will also end the execution of
- an <function>eval</function> statement or script file.
+ Zavol�n uvnit� funkce, konstrukt <function>return</function> okam�it�
+ ukon�� prov�d�n� t�to funkce a vrac� sv�j argument jako hodnotu vol�n�
+ funkce. <function>return</function> tak� obdobn� ukon�� prov�d�n�
+ konstruktu <function>eval</function> nebo cel�ho skriptu.
</simpara>
<simpara>
- If called from the global scope, then execution of the current
- script file is ended. If the current script file was
- <function>include</function>ed or <function>require</function>ed,
- then control is passed back to the calling file. Furthermore, if
- the current script file was <function>include</function>ed, then
- the value given to <function>return</function> will be returned as
- the value of the <function>include</function> call. If
- <function>return</function> is called from within the main script
- file, then script execution ends. If the current script file was
- named by the <link
- linkend="ini.auto-prepend-file">auto_prepend_file</link> or <link
- linkend="ini.auto-append-file">auto_append_file</link>
- configuration options in <link linkend="configuration.file">the
- configuration file</link>, then that script file's execution is
- ended.
+ Pokud se vol� z glob�ln�ho kontextu, prov�d�n� skriptu se ukon��. Byl-li
+ aktu�ln� skript vlo�en pomoc� <function>include</function> nebo
+ <function>require</function>, p�ed� se ��zen� volaj�c�mu souboru. Nav�c,
+ bylo-li pou�ito <function>include</function>, bude hodnota specifikovan�
+ v <function>return</function> vr�cena jako hodnota vol�n�
+ <function>include</function>. Pokud se <function>return</function>
+ zavol� z hlavn�ho souboru skriptu, prov�d�n� skon��. Kdy� se jedn� o
+ soubor specifikovan� pomoc� konfigura�n�ch voleb
+ <link linkend="ini.auto-prepend-file">auto_prepend_file</link> nebo
+ <link linkend="ini.auto-append-file">auto_append_file</link>
+ v <link linkend="configuration.file">konfigura�n�m souboru</link>,
+ zpracov�n� souboru kon��.
</simpara>
- <simpara>For more information, see <link
- linkend="functions.returning-values">Returning values</link>.
+ <simpara>V�ce informac� - viz
+ <link linkend="functions.returning-values">N�vratov� hodnoty</link>.
</simpara>
<note>
<simpara>
- Note that since <function>return</function> is a language
- construct and not a function, the parentheses surrounding its
- arguments are <emphasis>not</emphasis> required--in fact, it is
- more common to leave them out than to use them, although it
- doesn't matter one way or the other.
+ Uv�domte si, �e <function>return</function> je jazykov� konstrukt, a
+ nikoli funkce -- uzav�en� argument� do z�vorek <emphasis>nen�</emphasis>
+ nutn�. Obvykle se vynech�vaj�, ale nez�le�� na tom, zda se pou�ij� �i
+ nikoli.
</simpara>
</note>
</sect1>
@@ -980,29 +975,29 @@
<title><function>require</function></title>
<simpara>
- The <function>require</function> statement includes and evaluates
- the specific file.
+ Konstrukt <function>require</function> vlo�� a ohodnot� specifikovan�
+ soubor.
</simpara>
<simpara>
- <function>require</function> includes and evaluates a specific file.
- Detailed information on how this inclusion works is described in the
- documentation for <function>include</function>.
+ <function>require</function> vlo�� a ohodnot� specifikovan� soubor.
+ Podrobn� informace o tom, jak vkl�d�n� pracuje, jsou pops�ny v
+ dokumentaci o <function>include</function>.
</simpara>
<simpara>
- <function>require</function> and <function>include</function>
- are identical in every way except how they handle failure.
- <function>include</function> produces a
- <link linkend="internal.e-warning">Warning</link> while
- <function>require</function> results in a <link linkend="internal.e-error">
- Fatal Error</link>. In other words, don't hesitate to use
- <function>require</function> if you want a missing file to halt processing
- of the page. <function>include</function> does not behave this way, the
- script will continue regardless. Be sure to have an appropriate
- <link linkend="ini.include-path">include_path</link> setting as well.
+ <function>require</function> a <function>include</function> jsou toto�n�,
+ krom� toho, jak zpracov�vaj� chyby. <function>include</function>
+ vyprodukuje <link linkend="internal.e-warning">Warning</link> (varov�n�),
+ zat�mco <function>require</function> skon�� s chybou typu
+ <link linkend="internal.e-error">Fatal Error</link> (velmi v�n� chyba).
+ Jinak �e�eno, nerozpakujte se pou��t <function>require</function>,
+ pokud chcete, aby nep��tomnost souboru zastavila zpracov�n� str�nky.
+ <function>include</function> se takto nechov�, skript bude neru�en�
+ pokra�ovat. Ujist�te se tak�, �e m�te v po��dku nastaven�
+ <link linkend="ini.include-path">include_path</link>.
</simpara>
<para>
<example>
- <title>Basic <function>require</function> examples</title>
+ <title>Z�kladn� p��klady pou�it� <function>require</function></title>
<programlisting role="php">
<![CDATA[
<?php
@@ -1019,10 +1014,10 @@
</example>
</para>
<simpara>
- See the <function>include</function> documentation for more examples.
+ V�ce p��klad� -- viz dokumentace <function>include</function>.
</simpara>
<note>
- <simpara>
+ <simpara>
Prior to PHP 4.0.2, the following applies: <function>require</function> will
always attempt to read the target file, even if the line it's on never executes.
The conditional statement won't affect <function>require</function>. However,