Back to Opencart

Class Opencart\System\Library\DB\PDO

docs/api/Opencart.System.Library.DB.PDO.html

4.1.0.33.1 KB
Original Source

Namespaces

Classes

Class Opencart[System](http://localhost\opencart-master/docs/api/namespace-Opencart.System.html)\[Library](http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html)\[DB](http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.DB.html)\[PDO](http://localhost\opencart-master/docs/api/Opencart.System.Library.DB.PDO.html)

Class PDO

Located at system\library\db\pdo.php

Methods
`
public

			` | `__construct(string $hostname, string $username, string $password, string $database, string $port = '')`

Constructor

Constructor

| # | | `

public

			` | `query(string $sql): stdClass|true`

Query

Query

| # | | `

public

			` | `escape(string $value): string`

Escape

Escape

| # | | `

public

			` | `countAffected(): int`

countAffected

countAffected

| # | | `

public

			` | `getLastId(): ?int`

getLastId

getLastId

| # | | `

public

			` | `isConnected(): bool`

isConnected

isConnected

| # | | `

public

			` | `__destruct()`

Destructor Closes the DB connection when this object is destroyed.

Destructor Closes the DB connection when this object is destroyed.

| # |

OpenCart API API documentation generated by ApiGen dev-master