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

Class: MDB2_Driver_querysim

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

Class Overview

MDB2_Driver_Common
   |
   --MDB2_Driver_querysim

MDB2 QuerySim driver


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 216]
MDB2 QuerySim driver


[ Top ]


Class Variables

$escape_quotes =  "\\"

[line 218]


Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 226]

MDB2_Driver_querysim __construct( )

Constructor

[ Top ]

connect   [line 263]

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 314]

mixed disconnect( )

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

[ Top ]

exec   [line 529]

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 544]

mixed getServerVersion( [string $native = false])

return version information about the server
  • Return: array with versoin information or row string
  • Access: public

Parameters:

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

[ Top ]

_buildResult   [line 426]

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 337]

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 372]

the _modifyQuery( string $query, $is_manip, $limit, $offset)

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

Parameters:

string   $query   —  query to modify
   $is_manip   — 
   $limit   — 
   $offset   — 

[ Top ]

_parseOnDelim   [line 504]

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 391]

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 14:31:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.