Location: PHPKode > projects > RSS Framework for PHP > src/classes/mediaRSS/mediathumbnail.php
<?php error_reporting(E_ALL);
/**
 * This file is part of the Dynamic Networks RSS Framework for PHP
 * 
 * @author Gordon Oheim (hide@address.com)
 * @copyright Copyright 2005, Dynamic Networks
 * @link http://www.dynamicnetworks.de
 * @license http://creativecommons.org/licenses/GPL/2.0/ GNU General Public License
 * @filesource
 * @version 1.0.0
 */
 
/**
 * A class representing a mediathumbnail object
 * 
 * The mediathumbnail can be used to display a thumbnail along with a
 * mediacontent item. This class inherits from the class image. The main
 * difference lies in the fixed height and width attribute and the lack of
 * attributes. Because this class inherits from the class image, all attributes
 * are inherited. No attributes are defined in the source code of
 * mediathumbnail. All methods and attributes of the class image are available
 * in mediathumbnail.
 * 
 * @package rssFramework
 * @author Gordon Oheim (hide@address.com)
 * @link http://tools.search.yahoo.com/mrss/
 * @see mediacontent
 * @see mediarss
 * @see mediapeople
 * @see image
 */ 
class mediathumbnail extends image {

	/**
	 * Creates a new mediathumbnail object
	 * 
	 * This is the constructor for the mediathumbnail object. It sets the
	 * thumbnail width and height to 50px. If a url is passed, it will be set as
	 * the thumbnails url attribute. Width, Height and Url can be set manually
	 * as well.
	 * 
	 * @param url $url
	 * @see image::set_height()
	 * @see image::set_width()
	 * @see image::set_url()
	 * @access public
	 */
	function mediathumbnail($url = null) {
		if (!is_null($url)) {
			$this->set_url($url);
		}
		$this->set_height(50);
		$this->set_width(50);
	}
}
?>
Return current item: RSS Framework for PHP