[ Index ]

PHP Cross Reference of MyBB 1.8.37

title

Body

[close]

/inc/ -> db_pdo.php (summary)

(no description)

File Size: 245 lines (5 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

dbpdoEngine:: (12 methods):
  __construct()
  query()
  fetch_array()
  seek()
  num_rows()
  insert_id()
  error_number()
  error_string()
  affected_rows()
  num_fields()
  escape_string()
  get_attribute()


Class: dbpdoEngine  - X-Ref

MyBB 1.8
Copyright 2014 MyBB Group, All Rights Reserved

Website: http://www.mybb.com
License: http://www.mybb.com/about/license
__construct($dsn, $username="", $password="", $driver_options=array()   X-Ref
Connect to the database.
param: string $dsn The database DSN.
param: string $username The database username. (depends on DSN)
param: string $password The database user's password. (depends on DSN)
param: array $driver_options The databases driver options (optional)

query($string)   X-Ref
Query the database.
return: PDOStatement The query data.
param: string $string The query SQL.

fetch_array($query, $resulttype=PDO::FETCH_BOTH)   X-Ref
Return a result array for a query.
return: array The array of results.
param: PDOStatement $query The query resource.
param: int $resulttype One of PDO's constants: FETCH_ASSOC, FETCH_BOUND, FETCH_CLASS, FETCH_INTO, FETCH_LAZY, FETCH_NAMED, FETCH_NUM, FETCH_OBJ or FETCH_BOTH

seek($query, $row)   X-Ref
Moves internal row pointer to the next row
param: PDOStatement $query The query resource.
param: int $row The pointer to move the row to.

num_rows($query)   X-Ref
Return the number of rows resulting from a query.
return: int The number of rows in the result.
param: PDOStatement $query The query resource.

insert_id($name=null)   X-Ref
Return the last id number of inserted data.
return: int The id number.
param: string|null $name The name of the insert id to check. (Optional)

error_number($query)   X-Ref
Return an error number.
return: int The error number of the current error.
param: PDOStatement $query The query resource.

error_string($query)   X-Ref
Return an error string.
return: array The error string of the current error.
param: PDOStatement $query The query resource.

affected_rows($query)   X-Ref
Returns the number of affected rows in a query.
return: int The number of affected rows.
param: PDOStatement $query

num_fields($query)   X-Ref
Return the number of fields.
return: int The number of fields.
param: PDOStatement $query The query resource.

escape_string($string)   X-Ref
Escape a string according to the pdo escape format.
return: string The escaped string.
param: string $string The string to be escaped.

get_attribute($attribute)   X-Ref
Return a selected attribute
return: string The value of the attribute.
param: string $attribute The attribute to check.



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref