summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TDataRenderer.php
blob: e19f5b490d80e4c65f8054a98a55a1e61fb468c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
 * TDataRenderer class file
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @link http://www.pradosoft.com/
 * @copyright Copyright &copy; 2005-2014 PradoSoft
 * @license http://www.pradosoft.com/license/
 * @version $Id: TDataRenderer.php 3245 2013-01-07 20:23:32Z ctrlaltca $
 * @package System.Web.UI.WebControls
 * @since 3.1.2
 */

/**
 * TDataRenderer class
 *
 * TDataRenderer is the convenient base class for template-based renderer controls.
 * It extends {@link TTemplateControl} and implements the methods required
 * by the {@link IDataRenderer} interface.
 *
 * The following property is provided by TDataRenderer:
 * - {@link getData Data}: data associated with this renderer.

 * @author Qiang Xue <qiang.xue@gmail.com>
 * @version $Id: TDataRenderer.php 3245 2013-01-07 20:23:32Z ctrlaltca $
 * @package System.Web.UI.WebControls
 * @since 3.1.2
 */
abstract class TDataRenderer extends TTemplateControl implements IDataRenderer
{
	/**
	 * @var mixed data associated with this renderer
	 */
	private $_data;

	/**
	 * @return mixed data associated with the item
	 */
	public function getData()
	{
		return $this->_data;
	}

	/**
	 * @param mixed data to be associated with the item
	 */
	public function setData($value)
	{
		$this->_data=$value;
	}
}