PHP Class lithium\data\source\Mock

It implements the necessary methods, but does not support querying and has no storage backend. It can create generic entities for use in forms and elsewhere within the framework. This allows developers to create domain objects with business logic and schemas, without worrying about backend storage.
Inheritance: extends lithium\data\Source
Datei anzeigen Open project: unionofrad/lithium Class Usage Examples

Protected Properties

Property Type Description
$_classes

Public Methods

Method Description
connect ( )
create ( $query, array $options = [] )
delete ( $query, array $options = [] )
describe ( $entity, $fields = [], array $meta = [] )
disconnect ( )
enabled ( $feature = null )
read ( $query, array $options = [] )
relationship ( $class, $type, $name, array $options = [] )
sources ( $class = null )
update ( $query, array $options = [] )

Method Details

connect() public method

public connect ( )

create() public method

public create ( $query, 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 )

read() public method

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

relationship() public method

public relationship ( $class, $type, $name, array $options = [] )
$options array

sources() public method

public sources ( $class = null )

update() public method

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

Property Details

$_classes protected_oe property

protected $_classes