Hoa central
Wrapper.php
Go to the documentation of this file.
1 <?php
2 
38 
47 interface Wrapper
48 {
59  public function __construct(
60  $dsn,
61  $username,
62  $password,
63  Array $driverOption = []
64  );
65 
72  public function beginTransaction();
73 
80  public function commit();
81 
88  public function rollBack();
89 
98  public function lastInsertId($name = null);
99 
110  public function prepare($statement, Array $options = []);
111 
121  public function quote($string = null, $type = -1);
122 
131  public function query($statement);
132 
140  public function errorCode();
141 
149  public function errorInfo();
150 
157  public function getAvailableDrivers();
158 
166  public function setAttributes(Array $attributes);
167 
176  public function setAttribute($attribute, $value);
177 
184  public function getAttributes();
185 
193  public function getAttribute($attribute);
194 }
quote($string=null, $type=-1)
setAttributes(Array $attributes)
prepare($statement, Array $options=[])
setAttribute($attribute, $value)
__construct($dsn, $username, $password, Array $driverOption=[])