1 | <?php |
||
4 | class PDO extends base |
||
5 | { |
||
6 | /** |
||
7 | * @var \PDO |
||
8 | */ |
||
9 | protected $db; |
||
10 | private $select_db; |
||
11 | |||
12 | /** |
||
13 | * @param \PDO $pdo |
||
14 | */ |
||
15 | public function __construct($pdo) |
||
20 | |||
21 | public function select_db($db) |
||
25 | |||
26 | /* |
||
27 | * addslashes is not safe in multibyte |
||
28 | * str_replace is safe in multibyte but only utf-8 |
||
29 | */ |
||
30 | protected function escapeLiteral($value) |
||
42 | |||
43 | protected function query($sql) |
||
47 | |||
48 | /** |
||
49 | * @param \PDOStatement $handle |
||
50 | * |
||
51 | * @return null|\stdClass |
||
52 | */ |
||
53 | protected function getError($handle) |
||
65 | |||
66 | /** |
||
67 | * @param \PDOStatement $handle |
||
68 | * |
||
69 | * @return mixed |
||
70 | */ |
||
71 | protected function fetchRow($handle) |
||
75 | |||
76 | /** |
||
77 | * @param \PDOStatement $handle |
||
78 | * |
||
79 | * @return mixed |
||
80 | */ |
||
81 | protected function fetchAssoc($handle) |
||
85 | |||
86 | /** |
||
87 | * @param \PDOStatement $handle |
||
88 | * |
||
89 | * @return mixed |
||
90 | */ |
||
91 | protected function fetchObject($handle) |
||
95 | |||
96 | /** |
||
97 | * @param \PDOStatement $handle |
||
98 | * |
||
99 | * @return mixed |
||
100 | */ |
||
101 | protected function fetchBoth($handle) |
||
105 | |||
106 | public function insert_id() |
||
110 | |||
111 | /** |
||
112 | * @param \PDOStatement $handle |
||
113 | * |
||
114 | * @return mixed |
||
115 | */ |
||
116 | protected function getAffectedRows($handle) |
||
120 | |||
121 | protected function hasConnected() |
||
125 | |||
126 | protected function doConnect() |
||
131 | |||
132 | protected function transactionBegin() |
||
136 | |||
137 | protected function transactionCommit() |
||
141 | |||
142 | protected function transactionRollback() |
||
146 | |||
147 | /** |
||
148 | * @return bool |
||
149 | */ |
||
150 | protected function configIsSupportNestedTransaction() |
||
154 | } |
||
155 |