mysqliInterface Class Reference
List of all members.
Detailed Description
Definition at line 3 of file mysqliInterface.php.
Constructor & Destructor Documentation
| mysqliInterface::__construct |
( |
|
) |
|
Member Function Documentation
| mysqliInterface::connect |
( |
$ |
host, |
|
|
$ |
user, |
|
|
$ |
pass, |
|
|
$ |
db | |
|
) |
| | |
Definition at line 10 of file mysqliInterface.php.
00010 {
00011 $this->resource = @mysqli_connect($host, $user, $pass, $db);
00012 return $this->resource;
00013 }
| mysqliInterface::connectError |
( |
|
) |
|
| mysqliInterface::setCharset |
( |
$ |
charset |
) |
|
Definition at line 19 of file mysqliInterface.php.
00019 {
00020 $this->resource->set_charset($charset);
00021 }
| mysqliInterface::query |
( |
$ |
sql |
) |
|
Definition at line 23 of file mysqliInterface.php.
00023 {
00024 $this->cursor = mysqli_query($this->resource, $sql);
00025 return $this->cursor;
00026 }
| mysqliInterface::errno |
( |
|
) |
|
Definition at line 28 of file mysqliInterface.php.
00028 {
00029 return mysqli_errno($this->resource);
00030 }
| mysqliInterface::error |
( |
|
) |
|
Definition at line 32 of file mysqliInterface.php.
00032 {
00033 return mysqli_error($this->resource);
00034 }
| mysqliInterface::getEscaped |
( |
$ |
text |
) |
|
Definition at line 36 of file mysqliInterface.php.
00036 {
00037 return mysqli_real_escape_string($this->resource, (string) $text);
00038 }
| mysqliInterface::getNumRows |
( |
$ |
cur = null |
) |
|
Definition at line 40 of file mysqliInterface.php.
00040 {
00041 return mysqli_num_rows( $cur ? $cur : $this->cursor );
00042 }
| mysqliInterface::getAffectedRows |
( |
|
) |
|
Definition at line 44 of file mysqliInterface.php.
00044 {
00045 return mysqli_affected_rows($this->resource);
00046 }
| mysqliInterface::insertid |
( |
|
) |
|
Definition at line 48 of file mysqliInterface.php.
00048 {
00049 return mysqli_insert_id($this->resource);
00050 }
| mysqliInterface::getVersion |
( |
|
) |
|
Definition at line 52 of file mysqliInterface.php.
00052 {
00053 return mysqli_get_server_info($this->resource);
00054 }
| mysqliInterface::getFetchFunc |
( |
|
) |
|
| mysqliInterface::freeResultSet |
( |
$ |
cur = null |
) |
|
Definition at line 60 of file mysqliInterface.php.
00060 {
00061 mysqli_free_result($cur ? $cur : $this->cursor);
00062 }
| mysqliInterface::multiQuery |
( |
$ |
sql |
) |
|
Definition at line 64 of file mysqliInterface.php.
00064 {
00065 return mysqli_multi_query($this->resource, $sql);
00066 }
| mysqliInterface::storeResult |
( |
|
) |
|
Definition at line 68 of file mysqliInterface.php.
00068 {
00069 return mysqli_store_result($this->resource);
00070 }
| mysqliInterface::nextResult |
( |
|
) |
|
Definition at line 72 of file mysqliInterface.php.
00072 {
00073 return mysqli_next_result($this->resource);
00074 }
Member Data Documentation
mysqliInterface::$resource = null [private] |
mysqliInterface::$cursor = null [private] |
The documentation for this class was generated from the following file: