summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-21 09:10:41 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-21 09:10:41 +0100
commit9392b2523005d598ec6a5c254b8cbb5c49f50fcc (patch)
tree35b07dc44817f16a6af28eeb1de4713e5f0a7e0c
parentb780f073fc8a522cae078f3e53d6fa73dbd5e63b (diff)
Fixed previously broken file
-rw-r--r--framework/Data/DataGateway/TDataGatewayEventParameter.php52
1 files changed, 52 insertions, 0 deletions
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 @@
+<?php
+/**
+ * TDataGatewayCommand, TDataGatewayEventParameter and TDataGatewayResultEventParameter class file.
+ *
+ * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 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 <weizho[at]gmail[dot]com>
+ * @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