luk             Thu May 23 17:07:57 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.6 
phpdoc-cs/language/control-structures.xml:1.7
--- phpdoc-cs/language/control-structures.xml:1.6       Thu May  9 17:15:33 2002
+++ phpdoc-cs/language/control-structures.xml   Thu May 23 17:07:57 2002
@@ -1014,73 +1014,75 @@
    </example>
    </para>
    <simpara>
-    Více příkladů -- viz dokumentace <function>include</function>.
+    Další příklady -- viz dokumentace <function>include</function>.
    </simpara>
    <note>
     <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, 
-     if the line on which the <function>require</function> occurs is not executed, 
-     neither will any of the code in the target file be executed.  Similarly, looping 
-     structures do not affect the behaviour of <function>require</function>. Although 
-     the code contained in the target file is still subject to the loop, the 
-     <function>require</function> itself happens only once.
+     U verzí před PHP 4.0.2 platí toto: <function>require</function> se vždy
+     pokusí přečíst příslušný soubor, kromě případu, že se řádek s tímto
+     příkazem nemůže nikdy provést. Podmíněný výraz
+     <function>require</function> neovlivňuje. Avšak pokud se řádek, na kterém
+     <function>require</function> leží, vůbec neprovádí, nebude se provádět
+     ani kód v příslušném souboru. Podobně je tomu i v případě cyklů -- ani
+     ty neovlivňují chování <function>require</function>. Přestože kód
+     obsažený ve vkládaném souboru je stále předmětem opakování, samotné 
+     <function>require</function> se provede pouze jednou.
     </simpara>
    </note>
    <simpara>
-    See also <function>include</function>, <function>require_once</function>,
+    Viz také <function>include</function>, <function>require_once</function>,
     <function>include_once</function>, <function>eval</function>, 
     <function>file</function>, <function>readfile</function>, 
-    <function>virtual</function> and <link 
linkend="ini.include-path">include_path</link>.
+    <function>virtual</function> a <link 
+linkend="ini.include-path">include_path</link>.
    </simpara>
   </sect1>
 
  <sect1 id="function.include">
    <title><function>include</function></title>
    <simpara>
-    The <function>include</function> statement includes and evaluates
-    the specified file.
+    Konstrukt <function>include</function> vloží a ohodnotí specifikovaný
+    soubor.
    </simpara>
    <simpara>
-     The documentation below also applies to <function>require</function>.
-     The two constructs 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, 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.
+     Níže popsané platí i pro <function>require</function>. Tyto dva konstrukty
+     jsou zcela totožné, kromě toho, jak zpracovávají chyby.
+     <function>include</function> produkuje
+     <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>.
+     Jinými slovy, <function>require</function> použijte tehdy, chcete-li,
+     aby se při chybějícím souboru zastavilo zpracovávání.
+     <function>include</function> se tak 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>
    <simpara>
-     When a file is included, the code it contains inherits the
-     <link linkend="language.variables.scope">variable scope</link> of the
-     line on which the include occurs.  Any variables available at that line
-     in the calling file will be available within the called file, from that
-     point forward.
+     Pokud se vloží soubor, potom kód v něm obsažený dědí
+     <link linkend="language.variables.scope">kontext proměnné</link>
+     řádku, kde byl vložen. Všechny proměnné dostupné na tomto řádku
+     volajícího souboru budou (od této chvíle) dostupné i ve volaném souboru.
    </simpara>
    <para>
      <example>
-      <title>Basic <function>include</function> example</title>
+      <title>Základní příklad -- <function>include</function></title>
       <programlisting role="php">
 <![CDATA[
 vars.php
 <?php
 
-$color = 'green';
-$fruit = 'apple';
+$color = 'zelené';
+$fruit = 'jablko';
 
 ?>
 
 test.php
 <?php
 
-echo "A $color $fruit"; // A
+echo "Vidím $color $fruit"; // Vidím
 
 include 'vars.php';
 
-echo "A $color $fruit"; // A green apple
+echo "Vidím $color $fruit"; // Vidím zelené jablko
 
 ?>
 ]]>
@@ -1088,14 +1090,13 @@
      </example>
    </para>
    <simpara>
-     If the include occurs inside a function within the calling file,
-     then all of the code contained in the called file will behave as
-     though it had been defined inside that function.  So, it will follow
-     the variable scope of that function.
+     Pokud ke vložení dojde uvnitř funkce ve volajícím souboru, potom se všechen
+     kód obsažený ve volaném souboru bude chovat, jako by byl definován
+     uvnitř této funkce -- tedy v rámci kontextu proměnných funkce.     
    </simpara>
    <para>
      <example>
-     <title>Including within functions</title>
+     <title>Vkládání uvnitř funkcí</title>
       <programlisting role="php">
 <![CDATA[
 <?php


Reply via email to