| @@ 194-198 (lines=5) @@ | ||
| 191 | // Use global var so multi Adodb object can be included in count. |
|
| 192 | // (Done in func now) |
|
| 193 | // Use standalone func to can be easy extend by sub class. |
|
| 194 | if (in_array($name, array( |
|
| 195 | 'Execute', 'SelectLimit', 'GetOne', 'GetRow', 'GetAll', |
|
| 196 | 'GetCol', 'GetAssoc', 'ExecuteCursor' |
|
| 197 | ))) |
|
| 198 | $this->CountDbQueryTimes(); |
|
| 199 | ||
| 200 | return call_user_func_array(array($this->__conn, $name), $arg); |
|
| 201 | } // end of func __call |
|
| @@ 217-225 (lines=9) @@ | ||
| 214 | // Use static var so multi Adodb object can be included in count. |
|
| 215 | // Use standalone func for easy extend by sub class. |
|
| 216 | // CacheXxx() method is not counted. |
|
| 217 | if (in_array( |
|
| 218 | $name, |
|
| 219 | [ |
|
| 220 | 'Execute', 'SelectLimit', 'GetOne', 'GetRow', 'GetAll', |
|
| 221 | 'GetCol', 'GetAssoc', 'ExecuteCursor' |
|
| 222 | ] |
|
| 223 | )) { |
|
| 224 | $this->countQuery(); |
|
| 225 | } |
|
| 226 | ||
| 227 | return call_user_func_array([$this->conn, $name], $arg); |
|
| 228 | } |
|