* @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ * @package Prado\Web\UI\WebControls * @since 3.1.2 */ namespace Prado\Web\UI\WebControls; /** * 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 * @package Prado\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; } }