cvs: peardoc /en/package/php/php-compat components.xml /en/package/php/php-compat/php-compat loadconstant.xml loadfunction.xml

From: Date: Fri, 04 Jun 2004 05:36:17 +0000
Subject: cvs: peardoc /en/package/php/php-compat components.xml /en/package/php/php-compat/php-compat loadconstant.xml loadfunction.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4192@lists.php.net to get a copy of this message
aidan Fri Jun 4 01:36:17 2004 EDT Modified files: /peardoc/en/package/php/php-compat components.xml /peardoc/en/package/php/php-compat/php-compat loadconstant.xml loadfunction.xml Log: Fixed / Improved

http://cvs.php.net/diff.php/peardoc/en/package/php/php-compat/components.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/package/php/php-compat/components.xml diff -u peardoc/en/package/php/php-compat/components.xml:1.1 peardoc/en/package/php/php-compat/components.xml:1.2 --- peardoc/en/package/php/php-compat/components.xml:1.1 Thu Jun 3 23:22:34 2004 +++ peardoc/en/package/php/php-compat/components.xml Fri Jun 4 01:36:17 2004 @@ -1,17 +1,63 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.php.php-compat.components"> <refnamediv> <refname>Components</refname> - <refpurpose>List of replicated PHP Components</refpurpose> + <refpurpose>List of replicated components</refpurpose> </refnamediv> <refsect1> - <title>PHP_Compat Components</title> + <title>Components</title> <para> The following components have been implemented in PHP_Compat: -| Type | Name | Added to PHP | Minimum Version | -| function | str_split | PHP 5 | PHP 3 | + <table> + <title>Functions</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Name</entry> + <entry>Since</entry> + <entry>Requires</entry> + </row> + </thead> + <tbody> + <row> + <entry>array_change_key_case</entry> + <entry>PHP 4.2.0</entry> + <entry>PHP 3</entry> + </row> + <row> + <entry>array_chunk</entry> + <entry>PHP 4.2.0</entry> + <entry>PHP 3</entry> + </row> + </tbody> + </table> + + <table> + <title>Constants</title> + <tgroup cols="4"> + <thead> + <row> + <entry>Group</entry> + <entry>Constants</entry> + <entry>Since</entry> + </row> + </thead> + <tbody> + <row> + <entry>E_STRICT</entry> + <entry>E_STRICT</entry> + <entry>PHP 5</entry> + </row> + <row> + <entry>FILE</entry> + <entry>FILE_USE_INCLUDE_PATH, FILE_IGNORE_NEW_LINES, FILE_SKIP_EMPTY_LINES, FILE_APPEND, FILE_NO_DEFAULT_CONTEXT</entry> + <entry>PHP 5</entry> + </row> + </tbody> + </tgroup> + </table> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/peardoc/en/package/php/php-compat/php-compat/loadconstant.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/package/php/php-compat/php-compat/loadconstant.xml diff -u peardoc/en/package/php/php-compat/php-compat/loadconstant.xml:1.1 peardoc/en/package/php/php-compat/php-compat/loadconstant.xml:1.2 --- peardoc/en/package/php/php-compat/php-compat/loadconstant.xml:1.1 Thu Jun 3 23:22:40 2004 +++ peardoc/en/package/php/php-compat/php-compat/loadconstant.xml Fri Jun 4 01:36:17 2004 @@ -1,20 +1,74 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.php.php-compat.php-compat.loadconstant"> - <refnamediv> - <refname>PHP_Compat::loadConstant</refname> - <refpurpose>Load a constant</refpurpose> - </refnamediv> - <refsect1> - <title>PHP_Compat::loadConstant</title> - <para> - A list of replicated constants is on the <link linkend="package.php.php-compat.components">components</link> page. - </para> - </refsect1> - </refentry> - - + <refnamediv> + <refname>PHP_Compat::loadConstant()</refname> + <refpurpose>Loads a constant or constants</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'PHP/Compat.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>bool|array <function>PHP_Compat::loadConstant()</function></funcdef> + <paramdef> + string|array <parameter>$constant</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.php.php-compat.loadconstant.desc"> + &title.desc; + <para> + Loads a constant or constants + </para> + </refsect1> + <refsect1 id="package.php.php-compat.loadconstant.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> + <para> + <parameter>string|array $constant</parameter> - The name of the constant to load, or an array of names + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.php.php-compat.loadconstant.return"> + &title.returns; + <para> + <parameter>bool|array</parameter> - TRUE if the constant was loaded properly; FALSE if the constant was unable to be included (invalid constant name) or if the constant has already been defined. + </para> + </refsect1> + <refsect1 id="package.php.php-compat.loadconstant.example"> + &title.example; + <example> + <title>Using <function>PHP_Compat::loadConstant</function></title> + <programlisting role="php"> + <![CDATA[ +<?php +require_once 'PHP/Compat.php'; +PHP_Compat::loadConstant('E_STRICT'); +?> +]]> + </programlisting> + </example> + <para>Or, without using the PHP_Compat class:</para> + <example> + <title>Using <function>PHP_Compat::loadConstant</function></title> + <programlisting role="php"> + <![CDATA[ +<?php +require_once 'PHP/Compat/Constant/E_STRICT.php'; +?> +]]> + </programlisting> + </example> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/diff.php/peardoc/en/package/php/php-compat/php-compat/loadfunction.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/en/package/php/php-compat/php-compat/loadfunction.xml diff -u peardoc/en/package/php/php-compat/php-compat/loadfunction.xml:1.1 peardoc/en/package/php/php-compat/php-compat/loadfunction.xml:1.2 --- peardoc/en/package/php/php-compat/php-compat/loadfunction.xml:1.1 Thu Jun 3 23:22:40 2004 +++ peardoc/en/package/php/php-compat/php-compat/loadfunction.xml Fri Jun 4 01:36:17 2004 @@ -1,20 +1,74 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.php.php-compat.php-compat.loadfunction"> - <refnamediv> - <refname>Components</refname> - <refpurpose>Load a function</refpurpose> - </refnamediv> - <refsect1> - <title>PHP_Compat::loadFunction</title> - <para> - A list of replicated functions is on the <link linkend="package.php.php-compat.components">components</link> page. - </para> - </refsect1> - </refentry> - - + <refnamediv> + <refname>PHP_Compat::loadFunction()</refname> + <refpurpose>Loads a function or functions</refpurpose> + </refnamediv> + <refsynopsisdiv> + <funcsynopsis> + <funcsynopsisinfo> + require_once 'PHP/Compat.php'; + </funcsynopsisinfo> + <funcprototype> + <funcdef>bool|array <function>PHP_Compat::loadFunction()</function></funcdef> + <paramdef> + string|array <parameter>$function</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + </refsynopsisdiv> + <refsect1 id="package.php.php-compat.loadfunction.desc"> + &title.desc; + <para> + Loads a function or functions + </para> + </refsect1> + <refsect1 id="package.php.php-compat.loadfunction.parameter"> + &title.param; + <para> + <itemizedlist> + <listitem> + <para> + <parameter>string|array $function</parameter> - The name of the function to load, or an array of names + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.php.php-compat.loadfunction.return"> + &title.returns; + <para> + <parameter>bool|array</parameter> - TRUE if the function was loaded properly; FALSE if the function was unable to be included (invalid function name) or if the function has already been defined. + </para> + </refsect1> + <refsect1 id="package.php.php-compat.loadfunction.example"> + &title.example; + <example> + <title>Using <function>PHP_Compat::loadFunction</function></title> + <programlisting role="php"> + <![CDATA[ +<?php +require_once 'PHP/Compat.php'; +PHP_Compat::loadFunction('file_put_contents'); +?> +]]> + </programlisting> + </example> + <para>Or, without using the PHP_Compat class:</para> + <example> + <title>Using <function>PHP_Compat::loadFunction</function></title> + <programlisting role="php"> + <![CDATA[ +<?php +require_once 'PHP/Compat/Function/file_put_contents.php'; +?> +]]> + </programlisting> + </example> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml
« previous php.pear.doc (#4192) next »