Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * TDataRenderer class file
4
 *
5
 * @author Qiang Xue <qiang.xue@gmail.com>
6
 * @link http://www.pradosoft.com/
7
 * @copyright Copyright &copy; 2005-2008 PradoSoft
8
 * @license http://www.pradosoft.com/license/
9
 * @version $Id: TDataRenderer.php 2541 2008-10-21 15:05:13Z qiang.xue $
10
 * @package System.Web.UI.WebControls
11
 * @since 3.1.2
12
 */
13
 
14
/**
15
 * TDataRenderer class
16
 *
17
 * TDataRenderer is the convenient base class for template-based renderer controls.
18
 * It extends {@link TTemplateControl} and implements the methods required
19
 * by the {@link IDataRenderer} interface.
20
 *
21
 * The following property is provided by TDataRenderer:
22
 * - {@link getData Data}: data associated with this renderer.
23
 
24
 * @author Qiang Xue <qiang.xue@gmail.com>
25
 * @version $Id: TDataRenderer.php 2541 2008-10-21 15:05:13Z qiang.xue $
26
 * @package System.Web.UI.WebControls
27
 * @since 3.1.2
28
 */
29
abstract class TDataRenderer extends TTemplateControl implements IDataRenderer
30
{
31
	/**
32
	 * @var mixed data associated with this renderer
33
	 */
34
	private $_data;
35
 
36
	/**
37
	 * @return mixed data associated with the item
38
	 */
39
	public function getData()
40
	{
41
		return $this->_data;
42
	}
43
 
44
	/**
45
	 * @param mixed data to be associated with the item
46
	 */
47
	public function setData($value)
48
	{
49
		$this->_data=$value;
50
	}
51
}
52