lithium\data\Source::create PHP Method

create() abstract public method

This method should take a query object and use it to create a record in the data source.
abstract public create ( mixed $query, array $options = [] ) : boolean
$query mixed 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.
$options array 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
return boolean Returns true if the operation was a success, otherwise false.
    public abstract function create($query, array $options = array());