PHP Class lithium\tests\mocks\data\model\MockDatabase

Inheritance: extends lithium\data\source\Database
Mostra file Open project: unionofrad/lithium Class Usage Examples

Public Properties

Property Type Description
$connection
$log
$logs
$return
$sql

Protected Properties

Property Type Description
$_columns array Mock column type definitions.
$_quotes

Public Methods

Method Description
__construct ( array $config = [] )
connect ( )
describe ( $entity, $fields = [], array $meta = [] )
disconnect ( )
enabled ( $feature = null )
encoding ( $encoding = null )
error ( )
quote ( $value )
result ( $type, $resource, $context )
schema ( $query, $resource = null, $context = null )
sources ( $class = null )
testConfig ( )
value ( $value, array $schema = [] )

Protected Methods

Method Description
_execute ( $sql )
_insertId ( $query )

Method Details

__construct() public method

public __construct ( array $config = [] )
$config array

_execute() protected method

protected _execute ( $sql )

_insertId() protected method

protected _insertId ( $query )

connect() public method

public connect ( )

describe() public method

public describe ( $entity, $fields = [], array $meta = [] )
$meta array

disconnect() public method

public disconnect ( )

enabled() public static method

public static enabled ( $feature = null )

encoding() public method

public encoding ( $encoding = null )

error() public method

public error ( )

quote() public method

public quote ( $value )

result() public method

public result ( $type, $resource, $context )

schema() public method

public schema ( $query, $resource = null, $context = null )

sources() public method

public sources ( $class = null )

testConfig() public method

public testConfig ( )

value() public method

public value ( $value, array $schema = [] )
$schema array

Property Details

$_columns protected_oe property

Mock column type definitions.
protected array $_columns
return array

$_quotes protected_oe property

protected $_quotes

$connection public_oe property

public $connection

$log public_oe property

public $log

$logs public_oe property

public $logs

$return public_oe property

public $return

$sql public_oe property

public $sql