Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
StudipPDO Class Reference
Inheritance diagram for StudipPDO:
Inheritance graph
Collaboration diagram for StudipPDO:
Collaboration graph

Public Member Functions

 exec ($statement)
 query ($statement, $mode=NULL, $arg1=NULL, $arg2=NULL)
 prepare ($statement, $driver_options=array())

Static Protected Member Functions

static replaceStrings ($statement)

Detailed Description

This is a special variant of the standard PDO class that does not allow multiple statement execution.

Member Function Documentation

exec (   $statement)

Executes an SQL statement and returns the number of affected rows.

Parameters
stringSQL statement
Returns
int number of affected rows
prepare (   $statement,
  $driver_options = array() 
)

Prepares a statement for execution and returns a statement object.

Parameters
stringSQL statement
Returns
object PDOStatement object
query (   $statement,
  $mode = NULL,
  $arg1 = NULL,
  $arg2 = NULL 
)

Executes an SQL statement, returning a result set as a statement object.

Parameters
stringSQL statement
intfetch mode (optional)
mixedfetch mode parameter (see PDOStatement::setFetchMode)
mixedfetch mode parameter (see PDOStatement::setFetchMode)
Returns
object PDOStatement object
static replaceStrings (   $statement)
staticprotected

Replaces all string literals in the statement with placeholders.

Parameters
stringSQL statement
Returns
string modified SQL statement

The documentation for this class was generated from the following file: