PHP Class lithium\tests\mocks\data\source\database\adapter\MockAdapter

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

Protected Properties

Property Type Description
$_autoConfig array Holds an array of values that should be processed on initialisation.
$_columns array A list of columns for the current test
$_pointer array Internal pointer to indicate the current record.
$_records array This is useful for testing how an Adapter returns the data when invoking the Adapter::result() function

Public Methods

Method Description
__construct ( array $config = [] )
conditions ( $conditions, $context, array $options = [] )
connect ( )
create ( $record, array $options = [] )
delete ( $query, array $options = [] )
describe ( $entity, $fields = [], array $meta = [] )
disconnect ( )
enabled ( $feature = null )
encoding ( $encoding = null )
error ( )
fields ( $fields, $context )
key ( )
limit ( $limit, $context )
name ( $name )
order ( $order, $context )
read ( $query, array $options = [] )
renderCommand ( $type, $data = null, $context = null )
result ( $type, $resource, $context )
schema ( $query, $resource = null, $context = null )
sources ( $class = null )
update ( $query, array $options = [] )
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 )

conditions() public method

public conditions ( $conditions, $context, array $options = [] )
$options array

connect() public method

public connect ( )

create() public method

public create ( $record, array $options = [] )
$options array

delete() public method

public delete ( $query, array $options = [] )
$options array

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 ( )

fields() public method

public fields ( $fields, $context )

key() public method

public key ( )

limit() public method

public limit ( $limit, $context )

name() public method

public name ( $name )

order() public method

public order ( $order, $context )

read() public method

public read ( $query, array $options = [] )
$options array

renderCommand() public method

public renderCommand ( $type, $data = null, $context = null )

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 )

update() public method

public update ( $query, array $options = [] )
$options array

value() public method

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

Property Details

$_autoConfig protected_oe property

Holds an array of values that should be processed on initialisation.
protected array $_autoConfig
return array

$_columns protected_oe property

A list of columns for the current test
protected array $_columns
return array

$_pointer protected_oe property

Internal pointer to indicate the current record.
protected array $_pointer
return array

$_records protected_oe property

This is useful for testing how an Adapter returns the data when invoking the Adapter::result() function
protected array $_records
return array