Lines Matching refs:PDO
13 /** @var PDO[] do not access directly, use getPDO instead */
34 * Return the PDO object and cache it for the request
41 * @return PDO
53 PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, // always fetch as array
54 PDO::ATTR_EMULATE_PREPARES => true, // emulating prepares allows us to reuse param names
55 PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, // we want exceptions, not error codes
58 $this->pdo[$conid] = new PDO($dsn, $user, $pass, $opts);
82 $data = $sth->fetchAll(PDO::FETCH_ASSOC);
91 * @param PDO $pdo
96 public function prepareStatement(\PDO $pdo, $sql, $parameters)
116 $sth->bindValue($key, $val, PDO::PARAM_INT);