MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_Driver_querysim

Source Location: /MDB2_Driver_querysim-0.7.0/MDB2/Driver/querysim.php

Class Overview

MDB2_Driver_Common
   |
   --MDB2_Driver_querysim

MDB2 QuerySim driver


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 216]
MDB2 QuerySim driver


[ Top ]


Method Detail

__construct (Constructor)   [line 224]

MDB2_Driver_querysim __construct( )

Constructor

[ Top ]

connect   [line 267]

mixed connect( )

Open a file or simulate a successful database connect
  • Return: MDB2_OK string on success, a MDB2 error object on failure
  • Access: public

[ Top ]

disconnect   [line 330]

mixed disconnect( [boolean $force = true])

Log out and disconnect from the database.
  • Return: true on success, false if not connected and error object on error
  • Access: public

Parameters:

boolean   $force   —  if the disconnect should be forced even if the connection is opened persistently

[ Top ]

exec   [line 558]

mixed &exec( string $query)

Execute a manipulation query to the database and return any the affected rows
  • Return: affected rows on success, a MDB2 error on failure
  • Access: public

Parameters:

string   $query   —  the SQL query

[ Top ]

getServerVersion   [line 574]

mixed getServerVersion( [bool $native = false])

return version information about the server
  • Return: array/string with version information or MDB2 error object
  • Access: public

Parameters:

bool   $native   —  determines if the raw version string should be returned

[ Top ]

_buildResult   [line 455]

multi-dimensional _buildResult( string $query)

Convert QuerySim text into an array
  • Return: array containing the column names and data from the QuerySim
  • Access: protected

Parameters:

string   $query   —  Text of simulated query

[ Top ]

_doQuery   [line 352]

result &_doQuery( string $query, [boolean $is_manip = false], [resource $connection = null], [string $database_name = null])

Execute a query
  • Return: or error object
  • Access: protected

Parameters:

string   $query   —  query
boolean   $is_manip   —  if the query is a manipulation query
resource   $connection   — 
string   $database_name   — 

[ Top ]

_modifyQuery   [line 401]

string _modifyQuery( string $query, boolean $is_manip, integer $limit, integer $offset)

Changes a query string for various DBMS specific reasons
  • Return: modified query
  • Access: protected

Parameters:

string   $query   —  query to modify
boolean   $is_manip   —  if it is a DML query
integer   $limit   —  limit the number of rows
integer   $offset   —  start reading from given offset

[ Top ]

_parseOnDelim   [line 533]

array _parseOnDelim( string $thisLine, string $delim)

Split QuerySim string into an array on a delimiter
  • Return: containing parsed string
  • Access: protected

Parameters:

string   $thisLine   —  Text of simulated query
string   $delim   —  The delimiter to split on

[ Top ]

_readFile   [line 420]

string _readFile( string 0)

Read an external file
  • Return: the contents of a file
  • Access: protected

Parameters:

string   0   —  filepath/filename

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:51:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.