1 | <?php |
||
16 | class PDOStatement |
||
17 | { |
||
18 | /** |
||
19 | * @var \PDOStatement |
||
20 | */ |
||
21 | protected $statement; |
||
22 | |||
23 | /** |
||
24 | * @var ProfilerInterface |
||
25 | */ |
||
26 | protected $profiler; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $parameters = []; |
||
32 | |||
33 | /** |
||
34 | * @param \PDOStatement $statement |
||
35 | * @param ProfilerInterface $profiler |
||
36 | */ |
||
37 | 1 | public function __construct(\PDOStatement $statement, ProfilerInterface $profiler) |
|
42 | |||
43 | /** |
||
44 | * @param string $name |
||
45 | * @param array $arguments |
||
46 | * @return mixed |
||
47 | */ |
||
48 | 1 | public function __call($name, array $arguments) |
|
52 | |||
53 | /** |
||
54 | * @param array $input_parameters |
||
55 | * @return bool |
||
56 | */ |
||
57 | 1 | public function execute(array $input_parameters = null) |
|
69 | |||
70 | |||
71 | /** |
||
72 | * @param mixed $parameter |
||
73 | * @param mixed $variable |
||
74 | * @param int $data_type [optional] |
||
75 | * @param int $length [optional] |
||
76 | * @param mixed $driver_options [optional] |
||
77 | * @return bool |
||
78 | */ |
||
79 | 2 | public function bindParam($parameter, &$variable, $data_type = \PDO::PARAM_STR, $length = null, $driver_options = null) |
|
85 | |||
86 | /** |
||
87 | * @param mixed $column |
||
88 | * @param mixed $param |
||
89 | * @param int $type [optional] |
||
90 | * @param int $maxlen [optional] |
||
91 | * @param mixed $driverdata [optional] |
||
92 | * @return bool |
||
93 | */ |
||
94 | 1 | public function bindColumn($column, &$param, $type = null, $maxlen = null, $driverdata = null) |
|
98 | |||
99 | /** |
||
100 | * @return \PDOStatement |
||
101 | */ |
||
102 | 1 | public function getStatement() |
|
106 | |||
107 | /** |
||
108 | * @param \PDOStatement $statement |
||
109 | */ |
||
110 | 1 | public function setStatement(\PDOStatement $statement) |
|
114 | |||
115 | /** |
||
116 | * @return ProfilerInterface |
||
117 | */ |
||
118 | 1 | public function getProfiler() |
|
122 | |||
123 | /** |
||
124 | * @param ProfilerInterface $profiler |
||
125 | */ |
||
126 | 1 | public function setProfiler(ProfilerInterface $profiler) |
|
130 | } |
||
131 |