[PHP-DOC] cvs: phpdoc /de/functions info.xml /en/functions info.xml /it/functions info.xml /ja/functions info.xml From: Egon Schmid (eschmid <email protected>)
Date: 07/16/00

eschmid Sun Jul 16 09:24:53 2000 EDT

  Modified files:
    /phpdoc/en/functions info.xml
    /phpdoc/de/functions info.xml
    /phpdoc/it/functions info.xml
    /phpdoc/ja/functions info.xml
  Log:
  The corect function name is get_extension_funcs. Updated the Italian version.
  Include_once() and require_once are not in the funclist. Haven't found this
  functions in the Zend engine.
  
Index: phpdoc/en/functions/info.xml
diff -u phpdoc/en/functions/info.xml:1.11 phpdoc/en/functions/info.xml:1.12
--- phpdoc/en/functions/info.xml:1.11 Tue Jul 11 01:06:49 2000
+++ phpdoc/en/functions/info.xml Sun Jul 16 09:24:53 2000
@@ -793,14 +793,14 @@
          </informalexample>
     </para>
         <para>
- See also: <function>get_extension_functions</function>
+ See also: <function>get_extension_funcs</function>
         </para>
    </refsect1>
   </refentry>
 
- <refentry id="function.get-extension-functions">
+ <refentry id="function.get-extension-funcs">
    <refnamediv>
- <refname>get_extension_functions</refname>
+ <refname>get_extension_funcs</refname>
     <refpurpose>
          Returns an array with the names of the function of a module
         </refpurpose>
@@ -809,7 +809,7 @@
     <title>Description</title>
     <funcsynopsis>
      <funcprototype>
- <funcdef>array <function>get_extension_functions</function></funcdef>
+ <funcdef>array <function>get_extension_funcs</function></funcdef>
       <paramdef>string <parameter>module_name</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
Index: phpdoc/de/functions/info.xml
diff -u phpdoc/de/functions/info.xml:1.10 phpdoc/de/functions/info.xml:1.11
--- phpdoc/de/functions/info.xml:1.10 Wed Jul 12 04:59:50 2000
+++ phpdoc/de/functions/info.xml Sun Jul 16 09:24:53 2000
@@ -794,14 +794,14 @@
          </informalexample>
     </para>
         <para>
- See also: <function>get_extension_functions</function>
+ See also: <function>get_extension_funcs</function>
         </para>
    </refsect1>
   </refentry>
 
- <refentry id="function.get-extension-functions">
+ <refentry id="function.get-extension-funcs">
    <refnamediv>
- <refname>get_extension_functions</refname>
+ <refname>get_extension_funcs</refname>
     <refpurpose>
          Returns an array with the names of the function of a module
         </refpurpose>
@@ -810,7 +810,7 @@
     <title>Description</title>
     <funcsynopsis>
      <funcprototype>
- <funcdef>array <function>get_extension_functions</function></funcdef>
+ <funcdef>array <function>get_extension_funcs</function></funcdef>
       <paramdef>string <parameter>module_name</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
Index: phpdoc/it/functions/info.xml
diff -u phpdoc/it/functions/info.xml:1.6 phpdoc/it/functions/info.xml:1.7
--- phpdoc/it/functions/info.xml:1.6 Sun Jul 2 03:54:04 2000
+++ phpdoc/it/functions/info.xml Sun Jul 16 09:24:53 2000
@@ -1,5 +1,5 @@
  <reference id="ref.info">
- <title>PHP options & information</title>
+ <title>PHP options &amp; information</title>
   <titleabbrev>PHP options/info</titleabbrev>
 
   <refentry id="function.error-log">
@@ -743,6 +743,217 @@
     </para>
    </refsect1>
   </refentry>
+
+ <refentry id="function.get-loaded-extensions">
+ <refnamediv>
+ <refname>get_loaded_extensions</refname>
+ <refpurpose>
+ Returns an array with the names of all modules compiled and
+ loaded
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array <function>get_loaded_extensions</function></funcdef>
+ <paramdef>void </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ This function returns the names of all the modules compiled and
+ loaded in the PHP interpreter.
+ </para>
+ <para>
+ For example the line below
+ <informalexample>
+ <programlisting>
+print_r(get_loadedextensions());
+ </programlisting>
+ </informalexample>
+ will print a list like:
+ <informalexample>
+ <programlisting>
+Array
+(
+ [0] =&gt; xml
+ [1] =&gt; wddx
+ [2] =&gt; standard
+ [3] =&gt; session
+ [4] =&gt; posix
+ [5] =&gt; pgsql
+ [6] =&gt; pcre
+ [7] =&gt; gd
+ [8] =&gt; ftp
+ [9] =&gt; db
+ [10] =&gt; Calendar
+ [11] =&gt; bcmath
+)
+ </programlisting>
+ </informalexample>
+ </para>
+ <para>
+ See also: <function>get_extension_funcs</function>
+ </para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.get-extension-funcs">
+ <refnamediv>
+ <refname>get_extension_funcs</refname>
+ <refpurpose>
+ Returns an array with the names of the function of a module
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array <function>get_extension_funcs</function></funcdef>
+ <paramdef>string <parameter>module_name</parameter></paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ This function returns the names of all the functions defined in the
+ module indicated by <parameter>module_name</parameter>.
+ </para>
+ <para>
+ For example the lines below
+ <informalexample>
+ <programlisting>
+print_r(get_extension_funcs(&quot;xml&quot;));
+print_r(get_extension_funcs(&quot;gd&quot;));
+ </programlisting>
+ </informalexample>
+ will print a list of the functions in the modules <varname>xml</varname>
+ and <varname>gd</varname> respectively.
+ </para>
+ <para>
+ See also: <function>get_loaded_extensions</function>
+ </para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.get-required-files">
+ <refnamediv>
+ <refname>get_required_files</refname>
+ <refpurpose>
+ Returns an array with the names of the files require_once()'d in a script
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array <function>get_required_files</function></funcdef>
+ <paramdef>void </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ This function returns an associtative array of the names of all the files
+ that have been loaded into a script using
+ <function>require_once</function>. The indexes of the array are the file
+ names as used in the <function>require_once</function> without the
+ &quot;.php&quot; extension.
+ </para>
+ <para>
+ The example below
+ <example>
+ <title>Printing the required and included files</title>
+ <programlisting>
+&lt;?php
+
+require_once(&quot;local.php&quot;);
+require_once(&quot;../inc/global.php&quot;);
+
+for ($i=1; $i&lt;5; $i++)
+ include &quot;util&quot;.$i.&quot;php&quot;;
+
+echo &quot;Required_once files\n&quot;;
+print_r(get_required_files());
+
+echo &quot;Included_once files\n&quot;;
+print_r(get_included_files());
+ </programlisting>
+ </example>
+ will generate the following output:
+ <informalexample>
+ <programlisting>
+Required_once files
+Array
+(
+ [local] =&gt; local.php
+ [../inc/global] =&gt; /full/path/to/inc/global.php
+)
+
+Included_once files
+Array
+(
+ [util1] =&gt; util1.php
+ [util2] =&gt; util2.php
+ [util3] =&gt; util3.php
+ [util4] =&gt; util4.php
+)
+ </programlisting>
+ </informalexample>
+ </para>
+ <para>
+ <note>
+ <para>
+ As of PHP 4.0.1pl2 this function assumes that the
+ <varname>required_once</varname> files end in the extension
+ &quot;.php&quot;, other extensions do not work.
+ </para>
+ </note>
+ </para>
+ <para>
+ See also: <function>require_once</function>,
+ <function>include_once</function>,
+ <function>get_included_files</function>
+ </para>
+ </refsect1>
+ </refentry>
+
+ <refentry id="function.get-included-files">
+ <refnamediv>
+ <refname>get_included_files</refname>
+ <refpurpose>
+ Returns an array with the names of the files include_once()'d in a script
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>array <function>get_included_files</function></funcdef>
+ <paramdef>void </paramdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ This function returns an associtative array of the names of all the files
+ that have been loaded into a script using
+ <function>include_once</function>. The indexes of the array are the file
+ names as used in the <function>include_once</function> without the
+ &quot;.php&quot; extension.
+ </para>
+ <para>
+ <note>
+ <para>
+ As of PHP 4.0.1pl2 this function assumes that the
+ <varname>include_once</varname> files end in the extension
+ &quot;.php&quot;, other extensions do not work.
+ </para>
+ </note>
+ </para>
+ <para>
+ See also: <function>require_once</function>,
+ <function>include_once</function>,
+ <function>get_required_files</function>
+ </para>
+ </refsect1>
+ </refentry>
+
+
 
 </reference>
 
Index: phpdoc/ja/functions/info.xml
diff -u phpdoc/ja/functions/info.xml:1.7 phpdoc/ja/functions/info.xml:1.8
--- phpdoc/ja/functions/info.xml:1.7 Wed Jul 12 15:13:29 2000
+++ phpdoc/ja/functions/info.xml Sun Jul 16 09:24:53 2000
@@ -730,14 +730,14 @@
      </informalexample>
     </para>
     <para>
- <function>get_extension_functions</function>も参照下さい。
+ <function>get_extension_funcs</function>も参照下さい。
     </para>
    </refsect1>
   </refentry>
 
- <refentry id="function.get-extension-functions">
+ <refentry id="function.get-extension-funcs">
    <refnamediv>
- <refname>get_extension_functions</refname>
+ <refname>get_extension_funcs</refname>
     <refpurpose>
      あるモジュールの関数名を配列として返す
     </refpurpose>
@@ -746,7 +746,7 @@
     <title>説明</title>
     <funcsynopsis>
      <funcprototype>
- <funcdef>array <function>get_extension_functions</function></funcdef>
+ <funcdef>array <function>get_extension_funcs</function></funcdef>
       <paramdef>string <parameter>module_name</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>