cvs: peardoc /en/package html.xml /en/package/html html-tagcloud.xml /en/package/html/html-tagcloud examples.xml intro.xml
| From: | Shoma Suzuki | Date: | Sun, 26 Nov 2006 00:46:14 +0000 |
| Subject: | cvs: peardoc /en/package html.xml /en/package/html html-tagcloud.xml /en/package/html/html-tagcloud examples.xml intro.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8897@lists.php.net to get a copy of this message | ||
shomas Sun Nov 26 00:46:14 2006 UTC
Added files:
/peardoc/en/package/html html-tagcloud.xml
/peardoc/en/package/html/html-tagcloud intro.xml examples.xml
Modified files:
/peardoc/en/package html.xml
Log:
- adding document of HTML_TagCloud
http://cvs.php.net/viewvc.cgi/peardoc/en/package/html.xml?r1=1.23&r2=1.24&diff_format=u Index: peardoc/en/package/html.xml diff -u peardoc/en/package/html.xml:1.23 peardoc/en/package/html.xml:1.24 --- peardoc/en/package/html.xml:1.23 Tue Nov 14 10:49:23 2006 +++ peardoc/en/package/html.xml Sun Nov 26 00:46:14 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.23 $ --> +<!-- $Revision: 1.24 $ --> <chapter id="package.html"> <title>HTML</title> @@ -18,6 +18,7 @@ &package.html.html-quickform-renderer-tableless; &package.html.html-quickform-dhtmlrulestableless; &package.html.html-table; + &package.html.html-tagcloud; &package.html.html-template-flexy; &package.html.html-template-it; &package.html.html-template-phplib; http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-tagcloud.xml?view=markup&rev=1.1 Index: peardoc/en/package/html/html-tagcloud.xml +++ peardoc/en/package/html/html-tagcloud.xml <!-- $Revision: 1.1 $ --> <sect1 id="package.html.html-tagcloud"> <title>HTML_TagCloud</title> <para> HTML_TagCloud </para> &package.html.html-tagcloud.intro; &package.html.html-tagcloud.examples; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-tagcloud/intro.xml?view=markup&rev=1.1 Index: peardoc/en/package/html/html-tagcloud/intro.xml +++ peardoc/en/package/html/html-tagcloud/intro.xml <?xml version="1.0" encoding="ascii" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-tagcloud.intro"> <refentryinfo> <author> <firstname>Shoma</firstname> <surname>Suzuki</surname> </author> </refentryinfo> <refnamediv> <refname>Introduction</refname> <refpurpose>Introduction to <classname>HTML_TagCloud</classname>.</refpurpose> </refnamediv> <refsect1 id="package.html.html-tagcloud.intro.overview"> <title>Overview</title> <para> This Package generate TagCloud in <acronym>HTML</acronym> and <acronym>CSS</acronym>. TagCloud is an expression of list, that changing font size by frequency of list item. More information of TagCloud is available in <ulink lang="en-EN" url="http://en.wikipedia.org/wiki/Tagcloud"> WikiPedia</ulink>. This package is not only frequency, but also timeline infomation. the newer tag is deep color, the older is light color. </para> </refsect1> <refsect1 id="package.html.html-tagcloud.intro.whatis.example"> <title>Simple usage example</title> <example> <title>Basic example</title> <programlisting role="php"> <![CDATA[ <?php require_once 'HTML/TagCloud.php'; $tags = new HTML_TagCloud(); // add Element $tags->addElement('PHP','http://www.php.net', 39, strtotime('-1 day')); $tags->addElement('XML','http://www.xml.org', 21, strtotime('-2 week')); $tags->addElement('Perl','http://www.xml.org', 15, strtotime('-1 month')); $tags->addElement('PEAR','http://pear.php.net', 32, time()); $tags->addElement('MySQL','http://www.mysql.com', 10, strtotime('-2 day')); $tags->addElement('PostgreSQL','http://pgsql.com', 6, strtotime('-3 week')); // output HTML and CSS print $tags->buildALL(); ?> ]]> </programlisting> </example> <para> The above example code creates TagCloud contains five item. The most tag <quote>PHP</quote> is in largest font. The latest tag <quote>PEAR</quote> is in deepest color. Tags is sorted by alphabetically, escaped in HTML. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-tagcloud/examples.xml?view=markup&rev=1.1 Index: peardoc/en/package/html/html-tagcloud/examples.xml +++ peardoc/en/package/html/html-tagcloud/examples.xml <?xml version="1.0" encoding="ascii" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-tagcloud.examples"> <refentryinfo> <author> <firstname>Shoma</firstname> <surname>Suzuki</surname> </author> </refentryinfo> <refnamediv> <refname>Usage examples</refname> <refpurpose>Using HTML_TagCloud.</refpurpose> </refnamediv> <refsect1 id="package.html.html-tagcloud.examples.separately"> <title>Generate HTML and CSS separately</title> <para> This package output HTML and CSS. The HTML is simple list, decorated by CSS. It is able to output HTML and CSS separately. </para> <example> <title>output HTML and CSS separately</title> <programlisting role="php"> <![CDATA[ // CSS part only $css = $tags->buildCSS(); // html part only $taghtml = $tags->buildHTML(); ]]> </programlisting> </example> <para> The HTML Output is according with tag data input, but the CSS output is static. You can use this package CSS output statically. </para> </refsect1> <refsect1 id="package.html.html-tagcloud.examples.decoration"> <title>modify decoration of the tag</title> <para> It is possible to modify, by defined the class which overrides color and size property. </para> <example> <title>decoration example</title> <programlisting role="php"> <![CDATA[ class MyTags extends HTML_TagCloud{ protected $epoc_level = array( array( 'earliest' => array( 'link' => 'ffdfdf', 'visited' => 'ffdfdf', 'hover' => 'ffdfdf', 'active' => 'ffdfdf', ), ), array( 'earlier' => array( 'link' => 'ff7f7f', 'visited' => 'ff7f7f', 'hover' => 'ff7f7f', 'active' => 'ff7f7f', ), ), array( 'previous' => array( 'link' => 'ff7f7f', 'visited' => 'ff7f7f', 'hover' => 'ff7f7f', 'active' => 'ff7f7f', ), ), array( 'recent' => array( 'link' => 'ff4f4f', 'visited' => 'ff4f4f', 'hover' => 'ff4f4f', 'active' => 'ff4f4f', ), ), array( 'later' => array( 'link' => 'ff1f1f', 'visited' => 'ff1f1f', 'hover' => 'ff1f1f', 'active' => 'ff1f1f', ), ), array( 'latest' => array( 'link' => 'ff0000', 'visited' => 'ff0000', 'hover' => 'ff0000', 'active' => 'ff0000', ), ), ); protected $size_suffix = 'pt'; protected $fontsizerange = 0; protected $basefontsize = 12; } ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-tagcloud.examples.omittimeline"> <title>Omit timeline feature</title> <para> It can not use the function which changes color with the time line, by time of argument is omitted. When it omits, current time is set. </para> <example> <title>omit timeline</title> <programlisting role="php"> <![CDATA[ $tags->addElement('PHP','http://www.php.net', 39); ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/viewvc.cgi/peardoc/en/package/html.xml?r1=1.23&r2=1.24&diff_format=u Index: peardoc/en/package/html.xml diff -u peardoc/en/package/html.xml:1.23 peardoc/en/package/html.xml:1.24 --- peardoc/en/package/html.xml:1.23 Tue Nov 14 10:49:23 2006 +++ peardoc/en/package/html.xml Sun Nov 26 00:46:14 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.23 $ --> +<!-- $Revision: 1.24 $ --> <chapter id="package.html"> <title>HTML</title> @@ -18,6 +18,7 @@ &package.html.html-quickform-renderer-tableless; &package.html.html-quickform-dhtmlrulestableless; &package.html.html-table; + &package.html.html-tagcloud; &package.html.html-template-flexy; &package.html.html-template-it; &package.html.html-template-phplib; http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-tagcloud.xml?view=markup&rev=1.1 Index: peardoc/en/package/html/html-tagcloud.xml +++ peardoc/en/package/html/html-tagcloud.xml <!-- $Revision: 1.1 $ --> <sect1 id="package.html.html-tagcloud"> <title>HTML_TagCloud</title> <para> HTML_TagCloud </para> &package.html.html-tagcloud.intro; &package.html.html-tagcloud.examples; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-tagcloud/intro.xml?view=markup&rev=1.1 Index: peardoc/en/package/html/html-tagcloud/intro.xml +++ peardoc/en/package/html/html-tagcloud/intro.xml <?xml version="1.0" encoding="ascii" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-tagcloud.intro"> <refentryinfo> <author> <firstname>Shoma</firstname> <surname>Suzuki</surname> </author> </refentryinfo> <refnamediv> <refname>Introduction</refname> <refpurpose>Introduction to <classname>HTML_TagCloud</classname>.</refpurpose> </refnamediv> <refsect1 id="package.html.html-tagcloud.intro.overview"> <title>Overview</title> <para> This Package generate TagCloud in <acronym>HTML</acronym> and <acronym>CSS</acronym>. TagCloud is an expression of list, that changing font size by frequency of list item. More information of TagCloud is available in <ulink lang="en-EN" url="http://en.wikipedia.org/wiki/Tagcloud"> WikiPedia</ulink>. This package is not only frequency, but also timeline infomation. the newer tag is deep color, the older is light color. </para> </refsect1> <refsect1 id="package.html.html-tagcloud.intro.whatis.example"> <title>Simple usage example</title> <example> <title>Basic example</title> <programlisting role="php"> <![CDATA[ <?php require_once 'HTML/TagCloud.php'; $tags = new HTML_TagCloud(); // add Element $tags->addElement('PHP','http://www.php.net', 39, strtotime('-1 day')); $tags->addElement('XML','http://www.xml.org', 21, strtotime('-2 week')); $tags->addElement('Perl','http://www.xml.org', 15, strtotime('-1 month')); $tags->addElement('PEAR','http://pear.php.net', 32, time()); $tags->addElement('MySQL','http://www.mysql.com', 10, strtotime('-2 day')); $tags->addElement('PostgreSQL','http://pgsql.com', 6, strtotime('-3 week')); // output HTML and CSS print $tags->buildALL(); ?> ]]> </programlisting> </example> <para> The above example code creates TagCloud contains five item. The most tag <quote>PHP</quote> is in largest font. The latest tag <quote>PEAR</quote> is in deepest color. Tags is sorted by alphabetically, escaped in HTML. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-tagcloud/examples.xml?view=markup&rev=1.1 Index: peardoc/en/package/html/html-tagcloud/examples.xml +++ peardoc/en/package/html/html-tagcloud/examples.xml <?xml version="1.0" encoding="ascii" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.html.html-tagcloud.examples"> <refentryinfo> <author> <firstname>Shoma</firstname> <surname>Suzuki</surname> </author> </refentryinfo> <refnamediv> <refname>Usage examples</refname> <refpurpose>Using HTML_TagCloud.</refpurpose> </refnamediv> <refsect1 id="package.html.html-tagcloud.examples.separately"> <title>Generate HTML and CSS separately</title> <para> This package output HTML and CSS. The HTML is simple list, decorated by CSS. It is able to output HTML and CSS separately. </para> <example> <title>output HTML and CSS separately</title> <programlisting role="php"> <![CDATA[ // CSS part only $css = $tags->buildCSS(); // html part only $taghtml = $tags->buildHTML(); ]]> </programlisting> </example> <para> The HTML Output is according with tag data input, but the CSS output is static. You can use this package CSS output statically. </para> </refsect1> <refsect1 id="package.html.html-tagcloud.examples.decoration"> <title>modify decoration of the tag</title> <para> It is possible to modify, by defined the class which overrides color and size property. </para> <example> <title>decoration example</title> <programlisting role="php"> <![CDATA[ class MyTags extends HTML_TagCloud{ protected $epoc_level = array( array( 'earliest' => array( 'link' => 'ffdfdf', 'visited' => 'ffdfdf', 'hover' => 'ffdfdf', 'active' => 'ffdfdf', ), ), array( 'earlier' => array( 'link' => 'ff7f7f', 'visited' => 'ff7f7f', 'hover' => 'ff7f7f', 'active' => 'ff7f7f', ), ), array( 'previous' => array( 'link' => 'ff7f7f', 'visited' => 'ff7f7f', 'hover' => 'ff7f7f', 'active' => 'ff7f7f', ), ), array( 'recent' => array( 'link' => 'ff4f4f', 'visited' => 'ff4f4f', 'hover' => 'ff4f4f', 'active' => 'ff4f4f', ), ), array( 'later' => array( 'link' => 'ff1f1f', 'visited' => 'ff1f1f', 'hover' => 'ff1f1f', 'active' => 'ff1f1f', ), ), array( 'latest' => array( 'link' => 'ff0000', 'visited' => 'ff0000', 'hover' => 'ff0000', 'active' => 'ff0000', ), ), ); protected $size_suffix = 'pt'; protected $fontsizerange = 0; protected $basefontsize = 12; } ]]> </programlisting> </example> </refsect1> <refsect1 id="package.html.html-tagcloud.examples.omittimeline"> <title>Omit timeline feature</title> <para> It can not use the function which changes color with the time line, by time of argument is omitted. When it omits, current time is set. </para> <example> <title>omit timeline</title> <programlisting role="php"> <![CDATA[ $tags->addElement('PHP','http://www.php.net', 39); ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->