blob: 0bef08426ac15a98d2f3e31adcb36b023760e917 (
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
/**
* TDataGatewayCommand, TDataGatewayEventParameter and TDataGatewayResultEventParameter class file.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
* @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 <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;
}
}
|