Overview

Classes

  • TinyDB
  • TinyDBCommand
  • TinyDBFactory
  • TinyDBModel

Exceptions

  • TinyDBException
  • Overview
  • Class
  • Tree

Class TinyDB

Connection management/PDO Wrapper

Located at tinydb.php
Methods summary
public
# __construct( mixed $dsn = null, mixed $username = null, mixed $password = null, mixed $options = array() )
public
# getConfig( mixed $name = null )
public
# getPDO( mixed $name = null )
public
# addConnection( string $name, string $dsn, string $username = null, string $password = null, array $options = array() )

Add a new connection configuration

Add a new connection configuration

Parameters

$name
string
$name
$dsn
string
$dsn
$username
string
$username
$password
string
$password
$options
array
$options
public
# switchConnection( string $name = 'default' )

Set current connection

Set current connection

Parameters

$name
string
$name
public TinyDBFactory
# factory( string $model )

Create a model factory

Create a model factory

Parameters

$model
string
$model

Returns

TinyDBFactory
public TinyDBCommand
# command( )

Create command

Create command

Returns

TinyDBCommand
public
# getAttribute( mixed $attribute )

Link

http://www.php.net/manual/en/pdo.getattribute.php
public
# setAttribute( mixed $attribute, mixed $value )

Link

http://www.php.net/manual/en/pdo.setattribute.php
public
# prepare( )

Link

http://www.php.net/manual/en/pdo.prepare.php
public
# query( )

Link

http://www.php.net/manual/en/pdo.query.php
public
# exec( )

Link

http://www.php.net/manual/en/pdo.exec.php
public
# beginTransaction( )

Link

http://www.php.net/manual/en/pdo.begintransaction.php
public
# rollBack( )

Link

http://www.php.net/manual/en/pdo.rollback.php
public
# commit( )

Link

http://www.php.net/manual/en/pdo.commit.php
public
# inTransaction( )

Link

http://www.php.net/manual/en/pdo.intransaction.php
public
# lastInsertId( )

Link

http://www.php.net/manual/en/pdo.lastinsertid.php
public
# quote( )

Link

http://www.php.net/manual/en/pdo.quote.php
public
# errorCode( )
public
# errorInfo( )
public string;
# quoteTable( string $name )

Quote table name

Quote table name

Parameters

$name
string
$name

Returns

string;
public string;
# quoteColumn( string $name )

Quote column name

Quote column name

Parameters

$name
string
$name

Returns

string;
public string
# quoteIdentifier( string $name )

Quote table or column

Quote table or column

Parameters

$name
string
$name

Returns

string
public
# buildLimitOffset( mixed $sql, mixed $limit, mixed $offset = 0 )
public
# getPrefix( )
public
# fixPrefix( mixed $sql )
Properties summary
protected mixed $current
#
protected array $connections array()
#
protected array $configs array()
#
API documentation generated by ApiGen 2.8.0