1 | <?php |
||
15 | class Command extends \yii\db\Command |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * Binds a parameter to the SQL statement to be executed. |
||
20 | * @param string|integer $name parameter identifier. For a prepared statement |
||
21 | * using named placeholders, this will be a parameter name of |
||
22 | * the form `:name`. For a prepared statement using question mark |
||
23 | * placeholders, this will be the 1-indexed position of the parameter. |
||
24 | * @param mixed $value Name of the PHP variable to bind to the SQL statement parameter |
||
25 | * @param integer $dataType SQL data type of the parameter. If null, the type is determined by the PHP type of the value. |
||
26 | * @param integer $length length of the data type |
||
27 | * @param mixed $driverOptions the driver-specific options |
||
28 | * @return static the current command being executed |
||
29 | * @see http://www.php.net/manual/en/function.PDOStatement-bindParam.php |
||
30 | */ |
||
31 | 1 | public function bindParam($name, &$value, $dataType = null, $length = null, $driverOptions = null) |
|
41 | |||
42 | /** |
||
43 | * Specifies the SQL statement to be executed. |
||
44 | * The previous SQL execution (if any) will be cancelled, and [[params]] will be cleared as well. |
||
45 | * @param string $sql the SQL statement to be set. |
||
46 | * @return static this command instance |
||
47 | */ |
||
48 | 146 | public function setSql($sql) |
|
61 | |||
62 | public function getSql() { |
||
68 | |||
69 | /** |
||
70 | * Binds a value to a parameter. |
||
71 | * @param string|integer $name Parameter identifier. For a prepared statement |
||
72 | * using named placeholders, this will be a parameter name of |
||
73 | 2 | * the form `:name`. For a prepared statement using question mark |
|
74 | * placeholders, this will be the 1-indexed position of the parameter. |
||
75 | 2 | * @param mixed $value The value to bind to the parameter |
|
76 | 2 | * @param integer $dataType SQL data type of the parameter. If null, the type is determined by the PHP type of the value. |
|
77 | * @return static the current command being executed |
||
78 | 2 | * @see http://www.php.net/manual/en/function.PDOStatement-bindValue.php |
|
79 | */ |
||
80 | public function bindValue($name, $value, $dataType = null) |
||
91 | } |
||
92 |