Source for file TagCloud_example3.php
Documentation is available at TagCloud_example3.php
* Generate a customized Tag Cloud by extending the class.
* In this example we visualize only the timeline information, not the number of
* occurrences. Because of this every item of the tag cloud will have the same
* font size, but different colors. The newer the tag is, the deeper its color
* will be; older tags will have a lighter color.
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
* @author Bastian Onken <bastianonken@php.net>
* @copyright 2010 Bastian Onken
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version SVN: $Id: TagCloud_example3.php 295251 2010-02-19 11:32:43Z bastianonken $
* @link http://pear.php.net/package/HTML_TagCloud
* @since File available since Release 0.1.0
require_once 'HTML/TagCloud.php';
// To get the date function working properly we have to set the time zone
// {{{ class MyTags extends HTML_TagCloud{
* MyTags extends HTML_TagCloud
* Showing how to override the protected class vars
* @author Shoma Suzuki <shoma@catbot.net>
* @author Bastian Onken <bastianonken@php.net>
* @copyright 2010 Bastian Onken
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version Release: 1.0.0
* @link http://pear.php.net/package/HTML_TagCloud
* @since Class available since Release 0.1.0
* Defines colors of the different levels that tags will be assigned to
* Stores the font-size unit, potentional values are: mm,cm,in,pt,pc,px,em
* Limits the range of generated font-sizes
* Defines the base font size
// Create an instance of our extended HTML_TagCloud we prepared above
// Add Elements (same as TagCloud_example1.php)
// Print out HTML and CSS
// Show source, you don't need this line in your code, it's just for showing off
Take a look at the source:<br/>
Documentation generated on Wed, 02 Mar 2011 14:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|