From 9392b2523005d598ec6a5c254b8cbb5c49f50fcc Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 21 Jan 2015 09:10:41 +0100 Subject: Fixed previously broken file --- .../DataGateway/TDataGatewayEventParameter.php | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 framework/Data/DataGateway/TDataGatewayEventParameter.php (limited to 'framework') diff --git a/framework/Data/DataGateway/TDataGatewayEventParameter.php b/framework/Data/DataGateway/TDataGatewayEventParameter.php new file mode 100644 index 00000000..0bef0842 --- /dev/null +++ b/framework/Data/DataGateway/TDataGatewayEventParameter.php @@ -0,0 +1,52 @@ + + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2014 PradoSoft + * @license http://www.pradosoft.com/license/ + * @version $Id$ + * @package Prado\Data\DataGateway + */ + +namespace Prado\Data\DataGateway; + +/** + * TDataGatewayEventParameter class contains the TDbCommand to be executed as + * well as the criteria object. + * + * @author Wei Zhuo + * @version $Id$ + * @package Prado\Data\DataGateway + * @since 3.1 + */ +class TDataGatewayEventParameter extends TEventParameter +{ + private $_command; + private $_criteria; + + public function __construct($command,$criteria) + { + $this->_command=$command; + $this->_criteria=$criteria; + } + + /** + * The database command to be executed. Do not rebind the parameters or change + * the sql query string. + * @return TDbCommand command to be executed. + */ + public function getCommand() + { + return $this->_command; + } + + /** + * @return TSqlCriteria criteria used to bind the sql query parameters. + */ + public function getCriteria() + { + return $this->_criteria; + } +} \ No newline at end of file -- cgit v1.2.3