phpDocumentor Developer
[ class tree: Developer ] [ index: Developer ] [ all elements ]

Class: DBConnection

Source Location: /core/DBConnection.php

Class DBConnection

Class Overview

This class is a singleton for establishing a connection to the database

Located in /core/DBConnection.php [line 31]



		
				Author(s):
		
		
		
Information Tags:
License:  see

Methods

[ Top ]
Method Summary
static mixed   exec()   executes a query and triggers logging to the SQL audit log if it's not a SELECT
static int   lastID()   Retrieves the last auto-id of an INSERT. Needs to be called immediately after the corresponding exec() call
void   __clone()   Implemented for safety reasons only. Cloning is forbidden and will tell the user so.

[ Top ]
Methods
static method exec  [line 77]

  static mixed exec( $db, string $querystring  )

executes a query and triggers logging to the SQL audit log if it's not a SELECT

Parameters:
string   $querystring:  the query to be executed
   $db: 

API Tags:
Return:  the query result as mysqli_result object; or TRUE on non-return-value statements
Access:  public


[ Top ]
static method lastID  [line 102]

  static int lastID( $db  )

Retrieves the last auto-id of an INSERT. Needs to be called immediately after the corresponding exec() call

Parameters:
   $db: 

API Tags:
Return:  the last autoincrement-ID
Access:  public


[ Top ]
__clone  [line 68]

  void __clone( )

Implemented for safety reasons only. Cloning is forbidden and will tell the user so.


API Tags:
Access:  public


[ Top ]

Documentation generated on Wed, 08 Apr 2015 07:12:46 +0000 by phpDocumentor 1.4.4