cvs: peardoc /en/package/datetime/calendar intro-purpose.xml
| From: | Lorenzo Alberton | Date: | Wed, 23 Jun 2004 22:56:04 +0000 |
| Subject: | cvs: peardoc /en/package/datetime/calendar intro-purpose.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4480@lists.php.net to get a copy of this message | ||
quipo Wed Jun 23 18:56:04 2004 EDT
Modified files:
/peardoc/en/package/datetime/calendar intro-purpose.xml
Log:
- wrap lines
- update PEAR::Date dependency
http://cvs.php.net/diff.php/peardoc/en/package/datetime/calendar/intro-purpose.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/en/package/datetime/calendar/intro-purpose.xml diff -u peardoc/en/package/datetime/calendar/intro-purpose.xml:1.4 peardoc/en/package/datetime/calendar/intro-purpose.xml:1.5 --- peardoc/en/package/datetime/calendar/intro-purpose.xml:1.4 Fri Mar 12 04:53:53 2004 +++ peardoc/en/package/datetime/calendar/intro-purpose.xml Wed Jun 23 18:56:04 2004 @@ -1,4 +1,4 @@ -<!-- $Id: intro-purpose.xml,v 1.4 2004/03/12 09:53:53 didou Exp $ --> +<!-- $Id: intro-purpose.xml,v 1.5 2004/06/23 22:56:04 quipo Exp $ --> <refentry id="package.datetime.calendar.intro-purpose"> <refnamediv> <refname>Introduction</refname> @@ -11,27 +11,55 @@ <para> <warning> <simpara> - Some classes in PEAR::Calendar require PEAR::Date be installed. The PEAR::Date 1.3.1beta is missing a file and will not work. Make sure you have PEAR::Date 1.3 (stable) installed. + Some classes in PEAR::<classname>Calendar</classname> require + PEAR::<classname>Date</classname> be installed. + The PEAR::<classname>Date</classname> 1.3.1beta is missing a file + and will not work. Make sure you have PEAR::<classname>Date</classname> + version 1.4 or newer installed. </simpara> </warning> </para> <para> - PEAR::Calendar is an package for generating Calendars as data structures. It does not render content or rely on any underlying data store, allowing it to be applied to many problem domains. At the same time it provides an easy to use API that makes rendering, for example, an HTML calendar very easy, while making it possible to "connect" the calendar with your data store. + PEAR::Calendar is an package for generating Calendars as data structures. + It does not render content or rely on any underlying data store, + allowing it to be applied to many problem domains. + At the same time it provides an easy to use API that makes rendering, + for example, an HTML calendar very easy, while making it possible to + "connect" the calendar with your data store. </para> <para> - PEAR::Calendar was developed as a result of finding no alternatives out there in PHP. There are numerous public domain calendar utilities / classes out there but all are tied to a specific output format (typically HTML with limited ability to customize without re-writing code) and often dependent on pre-built data structures stored in a database (read MySQL). This poses significant restrictions on the problem domains they can be applied to. By contrast PEAR::Calendar focuses on eliminating the math from the task of generating a calendar, allowing the end user to simply iterate over a prepared data structure. + PEAR::<classname>Calendar</classname> was developed as a result of finding + no alternatives out there in PHP. + There are numerous public domain calendar utilities / classes out there + but all are tied to a specific output format (typically HTML with limited + ability to customize without re-writing code) and often dependent on pre-built + data structures stored in a database (read MySQL). + This poses significant restrictions on the problem domains they can be applied to. + By contrast PEAR::Calendar focuses on eliminating the math from the task + of generating a calendar, allowing the end user to simply iterate over + a prepared data structure. </para> <para> Some of the benefits / features of PEAR::Calendar include; <itemizedlist> <listitem> - <simpara>You can render whatever output you like (e.g. (X)HTML, WML, SOAP, XML-RPC, command line ASCII or whatever).</simpara> - </listitem> - <listitem> - <simpara>Generating a calendar is much like looping through the results of a database query.</simpara> - </listitem> - <listitem> - <simpara>Representations of all "date objects" from a Year down to a Second (e.g. you can equally render a complete yearly calendar with months and days or a "Weekly / Daily Diary")</simpara> + <simpara> + You can render whatever output you like (e.g. (X)HTML, WML, SOAP, + XML-RPC, command line ASCII or whatever). + </simpara> + </listitem> + <listitem> + <simpara> + Generating a calendar is much like looping through the results of + a database query. + </simpara> + </listitem> + <listitem> + <simpara> + Representations of all "date objects" from a Year down to a Second + (e.g. you can equally render a complete yearly calendar with months + and days or a "Weekly / Daily Diary") + </simpara> </listitem> <listitem> <simpara>Allows "tabular" calendars to be generated easily.</simpara> @@ -43,22 +71,42 @@ <simpara>Performs well despite number crunching and object oriented API.</simpara> </listitem> <listitem> - <simpara>Calendars can be easily navigated (e.g. providing a link from 1st Jan 2004 to 31st Dec 2003 is no problem).</simpara> - </listitem> - <listitem> - <simpara>It returns numeric values for all operations, meaning you are not tied to using, say, English names for months. Typically you would generate these yourself with PHP functions like strftime() and setlocale().</simpara> - </listitem> - <listitem> - <simpara>Representations of a date can be obtained as a human readable number or in the form of a timestamp (e.g. Unix Timestamp), depending on the calendar engine you are using.</simpara> - </listitem> - <listitem> - <simpara>You can attach your own functionality to the calendar by creating Decorators.</simpara> + <simpara> + Calendars can be easily navigated (e.g. providing a link from + 1st Jan 2004 to 31st Dec 2003 is no problem). + </simpara> + </listitem> + <listitem> + <simpara> + It returns numeric values for all operations, meaning you are not + tied to using, say, English names for months. + Typically you would generate these yourself with PHP functions like + <function>strftime</function> and <function>setlocale</function>. + </simpara> + </listitem> + <listitem> + <simpara> + Representations of a date can be obtained as a human readable number + or in the form of a timestamp (e.g. Unix Timestamp), depending on the + calendar engine you are using. + </simpara> + </listitem> + <listitem> + <simpara> + You can attach your own functionality to the calendar by creating Decorators. + </simpara> </listitem> <listitem> <simpara>Allows you to write layered, N-Tier applications.</simpara> </listitem> <listitem> - <simpara>The calendar "calculation engine" is abstracted meaning you are not tied to a Gregorian calendar - you could write a Tolkien calendar should you wish. Currently "engines" based on Unixtimestamps (the default) and PEAR::<classname>Date</classname> have been implemented.</simpara> + <simpara> + The calendar "calculation engine" is abstracted meaning you are not + tied to a Gregorian calendar - you could write a Tolkien calendar + should you wish. + Currently "engines" based on Unixtimestamps (the default) and + PEAR::<classname>Date</classname> have been implemented. + </simpara> </listitem> </itemizedlist> </para> @@ -80,7 +128,8 @@ ]]> </programlisting> </example> - <emphasis>Note:</emphasis> there are numerous and extensive examples provided with the PEAR::Calendar package file. + <emphasis>Note:</emphasis> there are numerous and extensive examples provided + with the PEAR::<classname>Calendar</classname> package file. </para> </refsect1> </refentry>
http://cvs.php.net/diff.php/peardoc/en/package/datetime/calendar/intro-purpose.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/en/package/datetime/calendar/intro-purpose.xml diff -u peardoc/en/package/datetime/calendar/intro-purpose.xml:1.4 peardoc/en/package/datetime/calendar/intro-purpose.xml:1.5 --- peardoc/en/package/datetime/calendar/intro-purpose.xml:1.4 Fri Mar 12 04:53:53 2004 +++ peardoc/en/package/datetime/calendar/intro-purpose.xml Wed Jun 23 18:56:04 2004 @@ -1,4 +1,4 @@ -<!-- $Id: intro-purpose.xml,v 1.4 2004/03/12 09:53:53 didou Exp $ --> +<!-- $Id: intro-purpose.xml,v 1.5 2004/06/23 22:56:04 quipo Exp $ --> <refentry id="package.datetime.calendar.intro-purpose"> <refnamediv> <refname>Introduction</refname> @@ -11,27 +11,55 @@ <para> <warning> <simpara> - Some classes in PEAR::Calendar require PEAR::Date be installed. The PEAR::Date 1.3.1beta is missing a file and will not work. Make sure you have PEAR::Date 1.3 (stable) installed. + Some classes in PEAR::<classname>Calendar</classname> require + PEAR::<classname>Date</classname> be installed. + The PEAR::<classname>Date</classname> 1.3.1beta is missing a file + and will not work. Make sure you have PEAR::<classname>Date</classname> + version 1.4 or newer installed. </simpara> </warning> </para> <para> - PEAR::Calendar is an package for generating Calendars as data structures. It does not render content or rely on any underlying data store, allowing it to be applied to many problem domains. At the same time it provides an easy to use API that makes rendering, for example, an HTML calendar very easy, while making it possible to "connect" the calendar with your data store. + PEAR::Calendar is an package for generating Calendars as data structures. + It does not render content or rely on any underlying data store, + allowing it to be applied to many problem domains. + At the same time it provides an easy to use API that makes rendering, + for example, an HTML calendar very easy, while making it possible to + "connect" the calendar with your data store. </para> <para> - PEAR::Calendar was developed as a result of finding no alternatives out there in PHP. There are numerous public domain calendar utilities / classes out there but all are tied to a specific output format (typically HTML with limited ability to customize without re-writing code) and often dependent on pre-built data structures stored in a database (read MySQL). This poses significant restrictions on the problem domains they can be applied to. By contrast PEAR::Calendar focuses on eliminating the math from the task of generating a calendar, allowing the end user to simply iterate over a prepared data structure. + PEAR::<classname>Calendar</classname> was developed as a result of finding + no alternatives out there in PHP. + There are numerous public domain calendar utilities / classes out there + but all are tied to a specific output format (typically HTML with limited + ability to customize without re-writing code) and often dependent on pre-built + data structures stored in a database (read MySQL). + This poses significant restrictions on the problem domains they can be applied to. + By contrast PEAR::Calendar focuses on eliminating the math from the task + of generating a calendar, allowing the end user to simply iterate over + a prepared data structure. </para> <para> Some of the benefits / features of PEAR::Calendar include; <itemizedlist> <listitem> - <simpara>You can render whatever output you like (e.g. (X)HTML, WML, SOAP, XML-RPC, command line ASCII or whatever).</simpara> - </listitem> - <listitem> - <simpara>Generating a calendar is much like looping through the results of a database query.</simpara> - </listitem> - <listitem> - <simpara>Representations of all "date objects" from a Year down to a Second (e.g. you can equally render a complete yearly calendar with months and days or a "Weekly / Daily Diary")</simpara> + <simpara> + You can render whatever output you like (e.g. (X)HTML, WML, SOAP, + XML-RPC, command line ASCII or whatever). + </simpara> + </listitem> + <listitem> + <simpara> + Generating a calendar is much like looping through the results of + a database query. + </simpara> + </listitem> + <listitem> + <simpara> + Representations of all "date objects" from a Year down to a Second + (e.g. you can equally render a complete yearly calendar with months + and days or a "Weekly / Daily Diary") + </simpara> </listitem> <listitem> <simpara>Allows "tabular" calendars to be generated easily.</simpara> @@ -43,22 +71,42 @@ <simpara>Performs well despite number crunching and object oriented API.</simpara> </listitem> <listitem> - <simpara>Calendars can be easily navigated (e.g. providing a link from 1st Jan 2004 to 31st Dec 2003 is no problem).</simpara> - </listitem> - <listitem> - <simpara>It returns numeric values for all operations, meaning you are not tied to using, say, English names for months. Typically you would generate these yourself with PHP functions like strftime() and setlocale().</simpara> - </listitem> - <listitem> - <simpara>Representations of a date can be obtained as a human readable number or in the form of a timestamp (e.g. Unix Timestamp), depending on the calendar engine you are using.</simpara> - </listitem> - <listitem> - <simpara>You can attach your own functionality to the calendar by creating Decorators.</simpara> + <simpara> + Calendars can be easily navigated (e.g. providing a link from + 1st Jan 2004 to 31st Dec 2003 is no problem). + </simpara> + </listitem> + <listitem> + <simpara> + It returns numeric values for all operations, meaning you are not + tied to using, say, English names for months. + Typically you would generate these yourself with PHP functions like + <function>strftime</function> and <function>setlocale</function>. + </simpara> + </listitem> + <listitem> + <simpara> + Representations of a date can be obtained as a human readable number + or in the form of a timestamp (e.g. Unix Timestamp), depending on the + calendar engine you are using. + </simpara> + </listitem> + <listitem> + <simpara> + You can attach your own functionality to the calendar by creating Decorators. + </simpara> </listitem> <listitem> <simpara>Allows you to write layered, N-Tier applications.</simpara> </listitem> <listitem> - <simpara>The calendar "calculation engine" is abstracted meaning you are not tied to a Gregorian calendar - you could write a Tolkien calendar should you wish. Currently "engines" based on Unixtimestamps (the default) and PEAR::<classname>Date</classname> have been implemented.</simpara> + <simpara> + The calendar "calculation engine" is abstracted meaning you are not + tied to a Gregorian calendar - you could write a Tolkien calendar + should you wish. + Currently "engines" based on Unixtimestamps (the default) and + PEAR::<classname>Date</classname> have been implemented. + </simpara> </listitem> </itemizedlist> </para> @@ -80,7 +128,8 @@ ]]> </programlisting> </example> - <emphasis>Note:</emphasis> there are numerous and extensive examples provided with the PEAR::Calendar package file. + <emphasis>Note:</emphasis> there are numerous and extensive examples provided + with the PEAR::<classname>Calendar</classname> package file. </para> </refsect1> </refentry>