lithium\data\Source::create()
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
$queryAn object which defines the update operation(s) that should be performed against the data store. This can be a
Query, aRecordSet, aRecord, or a subclass of one of the three. Alternatively,$querycan be an adapter-specific query string. -
array
$optionsThe options from Model include,
validateboolean default: trueeventsstring default: createwhitelistarray default: nullcallbacksboolean default: truelockedboolean default: true
Returns
booleanReturns true if the operation was a success, otherwise false.
Source
abstract public function create($query, array $options = array());