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

Class: ComDefaultDatabaseAdapterMysqli

Source Location: /administrator/components/com_default/databases/adapters/mysqli.php

Class Overview

KObject
   |
   --KDatabaseAdapterAbstract
      |
      --KDatabaseAdapterMysqli
         |
         --ComDefaultDatabaseAdapterMysqli

Default Database MySQLi Adapter


Author(s):

Implements interfaces:

Variables

Methods


Inherited Variables

Inherited Methods

Class: KDatabaseAdapterMysqli

KDatabaseAdapterMysqli::connect()
Connect to the db
KDatabaseAdapterMysqli::disconnect()
Disconnect from db
KDatabaseAdapterMysqli::getDatabase()
Get the database name
KDatabaseAdapterMysqli::getTableSchema()
Retrieves the table schema information about the given table
KDatabaseAdapterMysqli::isConnected()
Check if the connection is active
KDatabaseAdapterMysqli::lockTable()
Lock a table.
KDatabaseAdapterMysqli::setConnection()
Set the connection
KDatabaseAdapterMysqli::setDatabase()
Set the database name
KDatabaseAdapterMysqli::unlockTable()
Unlock a table.
KDatabaseAdapterMysqli::_fetchArray()
Fetch the first row of a result set as an associative array
KDatabaseAdapterMysqli::_fetchArrayList()
Fetch all result rows of a result set as an array of associative arrays
KDatabaseAdapterMysqli::_fetchField()
Fetch the first field of the first row
KDatabaseAdapterMysqli::_fetchFieldList()
Fetch an array of single field results
KDatabaseAdapterMysqli::_fetchObject()
Fetch the first row of a result set as an object
KDatabaseAdapterMysqli::_fetchObjectList()
Fetch all rows of a result set as an array of objects
KDatabaseAdapterMysqli::_fetchTableColumns()
Retrieves the column schema information about the given table
KDatabaseAdapterMysqli::_fetchTableIndexes()
Retrieves the index information about the given table
KDatabaseAdapterMysqli::_fetchTableInfo()
Retrieves the table schema information about the given tables
KDatabaseAdapterMysqli::_initialize()
Initializes the options for the object
KDatabaseAdapterMysqli::_parseColumnInfo()
Parse the raw column schema information
KDatabaseAdapterMysqli::_parseColumnType()
Given a raw column specification, parse into datatype, length, and decimal scope.
KDatabaseAdapterMysqli::_parseTableInfo()
Parse the raw table schema information
KDatabaseAdapterMysqli::_quoteValue()
Safely quotes a value for an SQL statement.

Class: KDatabaseAdapterAbstract

KDatabaseAdapterAbstract::__construct()
Constructor.
KDatabaseAdapterAbstract::delete()
Deletes rows from the table based on a WHERE clause.
KDatabaseAdapterAbstract::disconnect()
Disconnect from db
KDatabaseAdapterAbstract::execute()
Use and other queries that don't return rows
KDatabaseAdapterAbstract::getConnection()
Get the connection
KDatabaseAdapterAbstract::getDatabase()
Get the database name
KDatabaseAdapterAbstract::getInsertId()
Get the insert id of the last insert operation
KDatabaseAdapterAbstract::getQuery()
Get a database query object
KDatabaseAdapterAbstract::getTableNeedle()
Get the table needle
KDatabaseAdapterAbstract::getTablePrefix()
Get the table prefix
KDatabaseAdapterAbstract::insert()
Inserts a row of data into a table.
KDatabaseAdapterAbstract::quoteName()
Quotes a single identifier name (table, table alias, table column, index, sequence). Ignores empty values.
KDatabaseAdapterAbstract::quoteValue()
Safely quotes a value for an SQL statement.
KDatabaseAdapterAbstract::reconnect()
Reconnect to the db
KDatabaseAdapterAbstract::replaceTableNeedle()
This function replaces the table needles in a query string with the actual table prefix.
KDatabaseAdapterAbstract::select()
Preforms a select query
KDatabaseAdapterAbstract::setConnection()
Set the connection
KDatabaseAdapterAbstract::setDatabase()
Set the database name
KDatabaseAdapterAbstract::setTablePrefix()
Set the table prefix
KDatabaseAdapterAbstract::show()
Preforms a show query
KDatabaseAdapterAbstract::update()
Updates a table with specified data based on a WHERE clause
KDatabaseAdapterAbstract::_fetchArray()
Fetch the first row of a result set as an associative array
KDatabaseAdapterAbstract::_fetchArrayList()
Fetch all result rows of a result set as an array of associative arrays
KDatabaseAdapterAbstract::_fetchField()
Fetch the first field of the first row
KDatabaseAdapterAbstract::_fetchFieldList()
Fetch an array of single field results
KDatabaseAdapterAbstract::_fetchObject()
Fetch the first row of a result set as an object
KDatabaseAdapterAbstract::_fetchObjectList()
Fetch all rows of a result set as an array of objects
KDatabaseAdapterAbstract::_initialize()
Initializes the options for the object
KDatabaseAdapterAbstract::_parseColumnInfo()
Parse the raw column schema information
KDatabaseAdapterAbstract::_parseColumnType()
Given a raw column specification, parse into datatype, size, and decimal scope.
KDatabaseAdapterAbstract::_parseTableInfo()
Parse the raw table schema information
KDatabaseAdapterAbstract::_quoteName()
Quotes an identifier name (table, index, etc). Ignores empty values.
KDatabaseAdapterAbstract::_quoteValue()
Safely quotes a value for an SQL statement.
KDatabaseAdapterAbstract::__destruct()
Destructor

Class: KObject

KObject::__construct()
Constructor
KObject::get()
Get the object properties
KObject::getHandle()
Get a handle for this object
KObject::getIdentifier()
Gets the service identifier.
KObject::getMethods()
Get a list of all the available methods
KObject::getService()
Get an instance of a class based on a class identifier only creating it if it does not exist yet.
KObject::inherits()
Checks if the object or one of it's mixin's inherits from a class.
KObject::mixin()
Mixin an object
KObject::set()
Set the object properties
KObject::_initialize()
Initializes the options for the object
KObject::__call()
Search the mixin method map and call the method or trigger an error
KObject::__clone()
Preform a deep clone of the object.

Class Details

[line 20]
Default Database MySQLi Adapter



Tags:

author:  Johan Janssens <johan@nooku.org>


[ Top ]


Class Variables

$_cache =

[line 27]

The cache object



Tags:

access:  protected

Type:   JCache


[ Top ]



Class Methods


static method getInstance [line 52]

static KDatabaseTableInterface getInstance( $config, $container)

Force creation of a singleton



Tags:

access:  public


Parameters:

object An   $config   optional KConfig object with configuration options
object A   $container   KServiceInterface object

[ Top ]

constructor __construct [line 36]

ComDefaultDatabaseAdapterMysqli __construct( $config)

Constructor

Prevent creating instances of this class by making the contructor private




Tags:

access:  public


Overrides KDatabaseAdapterAbstract::__construct() (Constructor.)

Parameters:

object An   $config   optional KConfig object with configuration options

[ Top ]

method getTableSchema [line 96]

KDatabaseSchemaTable getTableSchema( string $table)

Retrieves the table schema information about the given table

This function try to get the table schema from the cache. If it cannot be found the table schema will be retrieved from the database and stored in the cache.




Tags:

access:  public


Overrides KDatabaseAdapterMysqli::getTableSchema() (Retrieves the table schema information about the given table)

Parameters:

string   $table   A table name or a list of table names

[ Top ]

method _initialize [line 72]

void _initialize( $config)

Initializes the options for the object

Called from __construct() as a first step of object instantiation.




Tags:

access:  protected


Overrides KDatabaseAdapterMysqli::_initialize() (Initializes the options for the object)

Parameters:

object An   $config   optional KConfig object with configuration options.

[ Top ]


Documentation generated on Sat, 18 May 2013 03:05:50 +0200 by phpDocumentor 1.4.3