lithium\data\Source::create()

abstract public method

Create a record. This is the abstract method that is implemented by specific data sources. This method should take a query object and use it to create a record in the data source.

Parameters

  • mixed $query

    An object which defines the update operation(s) that should be performed against the data store. This can be a Query, a RecordSet, a Record, or a subclass of one of the three. Alternatively, $query can be an adapter-specific query string.

  • array $options

    The options from Model include,

    • validate boolean default: true
    • events string default: create
    • whitelist array default: null
    • callbacks boolean default: true
    • locked boolean default: true

Returns

boolean

Returns true if the operation was a success, otherwise false.

Source

	abstract public function create($query, array $options = array());