cvs: phpdoc /it/functions datetime.xml dba.xml
| From: | Luca Perugini | Date: | Thu, 14 Dec 2000 00:28:25 +0000 |
| Subject: | cvs: phpdoc /it/functions datetime.xml dba.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969333249@lists.php.net to get a copy of this message | ||
perugini Wed Dec 13 16:28:25 2000 EDT
Modified files:
/phpdoc/it/functions dba.xml datetime.xml
Log:
Sync with en tree.
Index: phpdoc/it/functions/dba.xml diff -u phpdoc/it/functions/dba.xml:1.3 phpdoc/it/functions/dba.xml:1.4 --- phpdoc/it/functions/dba.xml:1.3 Thu Aug 31 09:27:36 2000 +++ phpdoc/it/functions/dba.xml Wed Dec 13 16:28:25 2000 @@ -21,8 +21,8 @@ database and will do nothing for others. </para> <para> - To add support for any of the following handlers, add the specified --with - configure switch to your PHP configure line: + To add support for any of the following handlers, add the + specified --with configure switch to your PHP configure line: <itemizedlist> <listitem> <simpara> @@ -333,35 +333,33 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_insert</function> inserts the entry described with <parameter>key</parameter> and <parameter>value</parameter> into the database specified by <parameter>handle</parameter>. It fails, if an entry - with the same <parameter>key</parameter> already exists.</para> - + with the same <parameter>key</parameter> already exists. + </para> <para> - <parameter>key</parameter> is the key of the entry to be inserted.</para> - + <parameter>key</parameter> is the key of the entry to be inserted. + </para> <para> - <parameter>value</parameter> is the value to be inserted.</para> - + <parameter>value</parameter> is the value to be inserted. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_insert</function> returns true or false, depending on - whether it succeeds of fails, respectively.</para> - + whether it succeeds of fails, respectively. + </para> <para> See also: <function>dba_exists</function> <function>dba_delete</function> <function>dba_fetch</function> <function>dba_replace</function> - </para> - + </para> </refsect1> </refentry> @@ -378,25 +376,23 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_nextkey</function> returns the next key of the database specified by <parameter>handle</parameter> and increments the internal - key pointer.</para> - + key pointer. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_nextkey</function> returns the key or false depending on - whether it succeeds or fails, respectively.</para> - + whether it succeeds or fails, respectively. + </para> <para> See also: <function>dba_firstkey</function> - </para> - + </para> </refsect1> </refentry> @@ -420,33 +416,32 @@ <para> <function>dba_popen</function> establishes a persistent database instance for <parameter>path</parameter> with <parameter>mode</parameter> using - <parameter>handler</parameter>.</para> - + <parameter>handler</parameter>. + </para> <para> - <parameter>path</parameter> is commonly a regular path in your filesystem.</para> - + <parameter>path</parameter> is commonly a regular path in your filesystem. + </para> <para> <parameter>mode</parameter> is "r" for read access, "w" for read/write access to an already existing database, "c" for read/write access and database creation if it doesn't currently exist, and "n" for - create, truncate and read/write access.</para> - + create, truncate and read/write access. + </para> <para> <parameter>handler</parameter> is the name of the handler which shall be used for accessing <parameter>path</parameter>. It is passed all optional parameters given to <function>dba_popen</function> and can act on behalf - of them.</para> - + of them. + </para> <para> <function>dba_popen</function> returns a positive handler id or false, in - the case the open is successful or fails, respectively.</para> - + the case the open is successful or fails, respectively. + </para> <para> See also: <function>dba_open</function> <function>dba_close</function> - </para> - + </para> </refsect1> </refentry> @@ -466,37 +461,35 @@ <paramdef><parameter><optional>...</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_open</function> establishes a database instance for <parameter>path</parameter> with <parameter>mode</parameter> using - <parameter>handler</parameter>.</para> - + <parameter>handler</parameter>. + </para> <para> - <parameter>path</parameter> is commonly a regular path in your filesystem.</para> - + <parameter>path</parameter> is commonly a regular path in your filesystem. + </para> <para> <parameter>mode</parameter> is "r" for read access, "w" for read/write access to an already existing database, "c" for read/write access and database creation if it doesn't currently exist, and "n" for - create, truncate and read/write access.</para> - + create, truncate and read/write access. + </para> <para> <parameter>handler</parameter> is the name of the handler which shall be used for accessing <parameter>path</parameter>. It is passed all optional parameters given to <function>dba_open</function> and can act on behalf of - them.</para> - + them. + </para> <para> <function>dba_open</function> returns a positive handler id or false, in - the case the open is successful or fails, respectively.</para> - + the case the open is successful or fails, respectively. + </para> <para> See also: <function>dba_popen</function> <function>dba_close</function> - </para> - + </para> </refsect1> </refentry> @@ -513,24 +506,22 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_optimize</function> optimizes the underlying database - specified by <parameter>handle</parameter>.</para> - + specified by <parameter>handle</parameter>. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_optimize</function> returns true or false, if the - optimization succeeds or fails, respectively.</para> - + optimization succeeds or fails, respectively. + </para> <para> See also: <function>dba_sync</function> - </para> - + </para> </refsect1> </refentry> @@ -549,34 +540,30 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_replace</function> replaces or inserts the entry described with <parameter>key</parameter> and <parameter>value</parameter> into the - database specified by <parameter>handle</parameter>.</para> - + database specified by <parameter>handle</parameter>. + </para> <para> - <parameter>key</parameter> is the key of the entry to be inserted.</para> - + <parameter>key</parameter> is the key of the entry to be inserted. + </para> <para> - <parameter>value</parameter> is the value to be inserted.</para> - + <parameter>value</parameter> is the value to be inserted. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_replace</function> returns true or false, depending on - whether it succeeds of fails, respectively.</para> - + whether it succeeds of fails, respectively. + </para> <para> - See also: - <function>dba_exists</function> - <function>dba_delete</function> - <function>dba_fetch</function> - <function>dba_insert</function> - </para> - + See also: <function>dba_exists</function>, + <function>dba_delete</function>, <function>dba_fetch</function>, + and <function>dba_insert</function>. + </para> </refsect1> </refentry> @@ -593,27 +580,25 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_sync</function> synchronizes the database specified by <parameter>handle</parameter>. This will probably trigger a physical write - to disk, if supported.</para> - + to disk, if supported. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_sync</function> returns true or false, if the - synchronization succeeds or fails, respectively.</para> - + synchronization succeeds or fails, respectively. + </para> <para> - See also: - <function>dba_optimize</function> - </para> - + See also: <function>dba_optimize</function> + </para> </refsect1> </refentry> + </reference> <!-- Keep this comment at the end of the file Index: phpdoc/it/functions/datetime.xml diff -u phpdoc/it/functions/datetime.xml:1.6 phpdoc/it/functions/datetime.xml:1.7 --- phpdoc/it/functions/datetime.xml:1.6 Thu Aug 31 09:26:05 2000 +++ phpdoc/it/functions/datetime.xml Wed Dec 13 16:28:25 2000 @@ -5,7 +5,7 @@ <refentry id="function.checkdate"> <refnamediv> <refname>checkdate</refname> - <refpurpose>Validate a date/time</refpurpose> + <refpurpose>Validate a gregorian date/time</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -24,7 +24,7 @@ <itemizedlist> <listitem> <simpara> - year is between 0 and 32767 inclusive + year is between 1 and 32767 inclusive </simpara> </listitem> <listitem> @@ -669,6 +669,11 @@ </programlisting> </example> </para> + <simpara> + Date with year, month and day equal to zero is considered illegal + (otherwise it what be regarded as 30.11.1999, which would be strange + behaviour). + </simpara> <para> See also <function>date</function> and <function>time</function>. </para> @@ -778,7 +783,7 @@ </listitem> <listitem> <simpara> - %m - month as a decimal number (range 1 to 12) + %m - month as a decimal number (range 01 to 12) </simpara> </listitem> <listitem> @@ -961,9 +966,13 @@ date format and will try to parse that format into a UNIX timestamp. <example> - <title><function>Strtotime</function> example</title> + <title><function>Strtotime</function> examples</title> <programlisting role="php"> -echo strtotime ("10 march 2000") . "\n"; +echo strtotime ("now") . "\n"; +echo strtotime ("10 September 2000") . "\n"; +echo strtotime ("+1 day") . "\n"; +echo strtotime ("+1 week") . "\n"; +echo strtotime ("+1 week 2 days 4 hours 2 seconds") . "\n"; </programlisting> </example> </para>
Index: phpdoc/it/functions/dba.xml diff -u phpdoc/it/functions/dba.xml:1.3 phpdoc/it/functions/dba.xml:1.4 --- phpdoc/it/functions/dba.xml:1.3 Thu Aug 31 09:27:36 2000 +++ phpdoc/it/functions/dba.xml Wed Dec 13 16:28:25 2000 @@ -21,8 +21,8 @@ database and will do nothing for others. </para> <para> - To add support for any of the following handlers, add the specified --with - configure switch to your PHP configure line: + To add support for any of the following handlers, add the + specified --with configure switch to your PHP configure line: <itemizedlist> <listitem> <simpara> @@ -333,35 +333,33 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_insert</function> inserts the entry described with <parameter>key</parameter> and <parameter>value</parameter> into the database specified by <parameter>handle</parameter>. It fails, if an entry - with the same <parameter>key</parameter> already exists.</para> - + with the same <parameter>key</parameter> already exists. + </para> <para> - <parameter>key</parameter> is the key of the entry to be inserted.</para> - + <parameter>key</parameter> is the key of the entry to be inserted. + </para> <para> - <parameter>value</parameter> is the value to be inserted.</para> - + <parameter>value</parameter> is the value to be inserted. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_insert</function> returns true or false, depending on - whether it succeeds of fails, respectively.</para> - + whether it succeeds of fails, respectively. + </para> <para> See also: <function>dba_exists</function> <function>dba_delete</function> <function>dba_fetch</function> <function>dba_replace</function> - </para> - + </para> </refsect1> </refentry> @@ -378,25 +376,23 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_nextkey</function> returns the next key of the database specified by <parameter>handle</parameter> and increments the internal - key pointer.</para> - + key pointer. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_nextkey</function> returns the key or false depending on - whether it succeeds or fails, respectively.</para> - + whether it succeeds or fails, respectively. + </para> <para> See also: <function>dba_firstkey</function> - </para> - + </para> </refsect1> </refentry> @@ -420,33 +416,32 @@ <para> <function>dba_popen</function> establishes a persistent database instance for <parameter>path</parameter> with <parameter>mode</parameter> using - <parameter>handler</parameter>.</para> - + <parameter>handler</parameter>. + </para> <para> - <parameter>path</parameter> is commonly a regular path in your filesystem.</para> - + <parameter>path</parameter> is commonly a regular path in your filesystem. + </para> <para> <parameter>mode</parameter> is "r" for read access, "w" for read/write access to an already existing database, "c" for read/write access and database creation if it doesn't currently exist, and "n" for - create, truncate and read/write access.</para> - + create, truncate and read/write access. + </para> <para> <parameter>handler</parameter> is the name of the handler which shall be used for accessing <parameter>path</parameter>. It is passed all optional parameters given to <function>dba_popen</function> and can act on behalf - of them.</para> - + of them. + </para> <para> <function>dba_popen</function> returns a positive handler id or false, in - the case the open is successful or fails, respectively.</para> - + the case the open is successful or fails, respectively. + </para> <para> See also: <function>dba_open</function> <function>dba_close</function> - </para> - + </para> </refsect1> </refentry> @@ -466,37 +461,35 @@ <paramdef><parameter><optional>...</optional></parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_open</function> establishes a database instance for <parameter>path</parameter> with <parameter>mode</parameter> using - <parameter>handler</parameter>.</para> - + <parameter>handler</parameter>. + </para> <para> - <parameter>path</parameter> is commonly a regular path in your filesystem.</para> - + <parameter>path</parameter> is commonly a regular path in your filesystem. + </para> <para> <parameter>mode</parameter> is "r" for read access, "w" for read/write access to an already existing database, "c" for read/write access and database creation if it doesn't currently exist, and "n" for - create, truncate and read/write access.</para> - + create, truncate and read/write access. + </para> <para> <parameter>handler</parameter> is the name of the handler which shall be used for accessing <parameter>path</parameter>. It is passed all optional parameters given to <function>dba_open</function> and can act on behalf of - them.</para> - + them. + </para> <para> <function>dba_open</function> returns a positive handler id or false, in - the case the open is successful or fails, respectively.</para> - + the case the open is successful or fails, respectively. + </para> <para> See also: <function>dba_popen</function> <function>dba_close</function> - </para> - + </para> </refsect1> </refentry> @@ -513,24 +506,22 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_optimize</function> optimizes the underlying database - specified by <parameter>handle</parameter>.</para> - + specified by <parameter>handle</parameter>. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_optimize</function> returns true or false, if the - optimization succeeds or fails, respectively.</para> - + optimization succeeds or fails, respectively. + </para> <para> See also: <function>dba_sync</function> - </para> - + </para> </refsect1> </refentry> @@ -549,34 +540,30 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_replace</function> replaces or inserts the entry described with <parameter>key</parameter> and <parameter>value</parameter> into the - database specified by <parameter>handle</parameter>.</para> - + database specified by <parameter>handle</parameter>. + </para> <para> - <parameter>key</parameter> is the key of the entry to be inserted.</para> - + <parameter>key</parameter> is the key of the entry to be inserted. + </para> <para> - <parameter>value</parameter> is the value to be inserted.</para> - + <parameter>value</parameter> is the value to be inserted. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_replace</function> returns true or false, depending on - whether it succeeds of fails, respectively.</para> - + whether it succeeds of fails, respectively. + </para> <para> - See also: - <function>dba_exists</function> - <function>dba_delete</function> - <function>dba_fetch</function> - <function>dba_insert</function> - </para> - + See also: <function>dba_exists</function>, + <function>dba_delete</function>, <function>dba_fetch</function>, + and <function>dba_insert</function>. + </para> </refsect1> </refentry> @@ -593,27 +580,25 @@ <paramdef>int <parameter>handle</parameter></paramdef> </funcprototype> </funcsynopsis> - <para> <function>dba_sync</function> synchronizes the database specified by <parameter>handle</parameter>. This will probably trigger a physical write - to disk, if supported.</para> - + to disk, if supported. + </para> <para> <parameter>handle</parameter> is a database handle returned by - <function>dba_open</function>.</para> - + <function>dba_open</function>. + </para> <para> <function>dba_sync</function> returns true or false, if the - synchronization succeeds or fails, respectively.</para> - + synchronization succeeds or fails, respectively. + </para> <para> - See also: - <function>dba_optimize</function> - </para> - + See also: <function>dba_optimize</function> + </para> </refsect1> </refentry> + </reference> <!-- Keep this comment at the end of the file Index: phpdoc/it/functions/datetime.xml diff -u phpdoc/it/functions/datetime.xml:1.6 phpdoc/it/functions/datetime.xml:1.7 --- phpdoc/it/functions/datetime.xml:1.6 Thu Aug 31 09:26:05 2000 +++ phpdoc/it/functions/datetime.xml Wed Dec 13 16:28:25 2000 @@ -5,7 +5,7 @@ <refentry id="function.checkdate"> <refnamediv> <refname>checkdate</refname> - <refpurpose>Validate a date/time</refpurpose> + <refpurpose>Validate a gregorian date/time</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -24,7 +24,7 @@ <itemizedlist> <listitem> <simpara> - year is between 0 and 32767 inclusive + year is between 1 and 32767 inclusive </simpara> </listitem> <listitem> @@ -669,6 +669,11 @@ </programlisting> </example> </para> + <simpara> + Date with year, month and day equal to zero is considered illegal + (otherwise it what be regarded as 30.11.1999, which would be strange + behaviour). + </simpara> <para> See also <function>date</function> and <function>time</function>. </para> @@ -778,7 +783,7 @@ </listitem> <listitem> <simpara> - %m - month as a decimal number (range 1 to 12) + %m - month as a decimal number (range 01 to 12) </simpara> </listitem> <listitem> @@ -961,9 +966,13 @@ date format and will try to parse that format into a UNIX timestamp. <example> - <title><function>Strtotime</function> example</title> + <title><function>Strtotime</function> examples</title> <programlisting role="php"> -echo strtotime ("10 march 2000") . "\n"; +echo strtotime ("now") . "\n"; +echo strtotime ("10 September 2000") . "\n"; +echo strtotime ("+1 day") . "\n"; +echo strtotime ("+1 week") . "\n"; +echo strtotime ("+1 week 2 days 4 hours 2 seconds") . "\n"; </programlisting> </example> </para>