cvs: phpdoc-de /reference/calendar/functions cal-info.xml

From: Date: Sat, 20 Jan 2007 15:13:08 +0000
Subject: cvs: phpdoc-de /reference/calendar/functions cal-info.xml
Groups: php.doc.de 
Request: Send a blank email to doc-de+get-1834@lists.php.net to get a copy of this message
hholzgra Sat Jan 20 15:13:08 2007 UTC Modified files: /phpdoc-de/reference/calendar/functions cal-info.xml Log: translation update http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/calendar/functions/cal-info.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-de/reference/calendar/functions/cal-info.xml diff -u phpdoc-de/reference/calendar/functions/cal-info.xml:1.2 phpdoc-de/reference/calendar/functions/cal-info.xml:1.3 --- phpdoc-de/reference/calendar/functions/cal-info.xml:1.2 Thu Jan 2 21:17:25 2003 +++ phpdoc-de/reference/calendar/functions/cal-info.xml Sat Jan 20 15:13:08 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.3 Maintainer: mk Status: ready --> <refentry id='function.cal-info'> <refnamediv> @@ -10,10 +10,102 @@ <title>Beschreibung</title> <methodsynopsis> <type>array</type><methodname>cal_info</methodname> - <methodparam><type>int</type><parameter>calendar</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>calendar</parameter></methodparam> </methodsynopsis> <para> - &warn.undocumented.func; + <function>cal_info</function> liefert Informationen zum + angegebenen Kalender <parameter>calendar</parameter>. + </para> + <para> + Kalenderinformationen werden als ein Array mit den Elementen + <literal>calname</literal>, <literal>calsymbol</literal>, + <literal>month</literal>, <literal>abbrevmonth</literal> und + <literal>maxdaysinmonth</literal> zurückgegeben. + Als Parameter <parameter>calendar</parameter> können folgende + Konstanten benutzt werden: + <itemizedlist> + <listitem> + <simpara> + 0 oder <constant>CAL_GREGORIAN</constant> - Gregorianischer Kalender + </simpara> + </listitem> + <listitem> + <simpara> + 1 oder <constant>CAL_JULIAN</constant> - Julianischer Kalender + </simpara> + </listitem> + <listitem> + <simpara> + 2 oder <constant>CAL_JEWISH</constant> - Jüdischer Kalender + </simpara> + </listitem> + <listitem> + <simpara> + 3 oder <constant>CAL_FRENCH</constant> - Kalender der französischen Revolution + </simpara> + </listitem> + </itemizedlist> + </para> + <para> + Wird kein <parameter>calendar</parameter> spezifiziert so werden + Informationen über alle unterstützten Kalender als Array zurückgegeben. + Diese Funktionalität existiert seit PHP 5. + </para> + <para> + <example> + <title><function>cal_info</function> Beispiel</title> + <programlisting role="php"> +<![CDATA[ +<?php +$info = cal_info(0); +print_r($info); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Array +( + [months] => Array + ( + [1] => January + [2] => February + [3] => March + [4] => April + [5] => May + [6] => June + [7] => July + [8] => August + [9] => September + [10] => October + [11] => November + [12] => December + ) + + [abbrevmonths] => Array + ( + [1] => Jan + [2] => Feb + [3] => Mar + [4] => Apr + [5] => May + [6] => Jun + [7] => Jul + [8] => Aug + [9] => Sep + [10] => Oct + [11] => Nov + [12] => Dec + ) + + [maxdaysinmonth] => 31 + [calname] => Gregorian + [calsymbol] => CAL_GREGORIAN +) +]]> + </screen> + </example> </para> </refsect1> </refentry>

« previous php.doc.de (#1834) next »