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

Inheritance: extends lithium\data\source\Database
Afficher le fichier Open project: unionofrad/lithium

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 = [] )

Méthodes protégées

Méthode Description
_execute ( $sql )
_insertId ( $query )

Method Details

__construct() public méthode

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

_execute() protected méthode

protected _execute ( $sql )

_insertId() protected méthode

protected _insertId ( $query )

conditions() public méthode

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

connect() public méthode

public connect ( )

create() public méthode

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

delete() public méthode

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

describe() public méthode

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

disconnect() public méthode

public disconnect ( )

enabled() public static méthode

public static enabled ( $feature = null )

encoding() public méthode

public encoding ( $encoding = null )

error() public méthode

public error ( )

fields() public méthode

public fields ( $fields, $context )

key() public méthode

public key ( )

limit() public méthode

public limit ( $limit, $context )

name() public méthode

public name ( $name )

order() public méthode

public order ( $order, $context )

read() public méthode

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

renderCommand() public méthode

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

result() public méthode

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

schema() public méthode

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

sources() public méthode

public sources ( $class = null )

update() public méthode

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

value() public méthode

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
Résultat array

$_columns protected_oe property

A list of columns for the current test
protected array $_columns
Résultat array

$_pointer protected_oe property

Internal pointer to indicate the current record.
protected array $_pointer
Résultat 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
Résultat array