PHP 클래스 lithium\tests\mocks\data\source\database\adapter\MockAdapter

상속: extends lithium\data\source\Database
파일 보기 프로젝트 열기: unionofrad/lithium

보호된 프로퍼티들

프로퍼티 타입 설명
$_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

공개 메소드들

메소드 설명
__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 = [] )

보호된 메소드들

메소드 설명
_execute ( $sql )
_insertId ( $query )

메소드 상세

__construct() 공개 메소드

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

_execute() 보호된 메소드

protected _execute ( $sql )

_insertId() 보호된 메소드

protected _insertId ( $query )

conditions() 공개 메소드

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

connect() 공개 메소드

public connect ( )

create() 공개 메소드

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

delete() 공개 메소드

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

describe() 공개 메소드

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

disconnect() 공개 메소드

public disconnect ( )

enabled() 공개 정적인 메소드

public static enabled ( $feature = null )

encoding() 공개 메소드

public encoding ( $encoding = null )

error() 공개 메소드

public error ( )

fields() 공개 메소드

public fields ( $fields, $context )

key() 공개 메소드

public key ( )

limit() 공개 메소드

public limit ( $limit, $context )

name() 공개 메소드

public name ( $name )

order() 공개 메소드

public order ( $order, $context )

read() 공개 메소드

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

renderCommand() 공개 메소드

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

result() 공개 메소드

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

schema() 공개 메소드

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

sources() 공개 메소드

public sources ( $class = null )

update() 공개 메소드

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

value() 공개 메소드

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

프로퍼티 상세

$_autoConfig 보호되어 있는 프로퍼티

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

$_columns 보호되어 있는 프로퍼티

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

$_pointer 보호되어 있는 프로퍼티

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

$_records 보호되어 있는 프로퍼티

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