CRUD Interface
Describes CRUD interface.
withSchema
Return an instance with provided schema.
$crud = $crud->withSchema($table_name, $data_fields, $unique_field);
withRecord
Return an instance with record.
$crud = $crud->withRecord($clause);
isExists
Check if record is exists.
$is_exists = $crud->isExists();
getData
Retrieve all data.
$data = $crud->getData();
getValue
Retrieve data value.
$value = $crud->getValue($field_name, $default);
create
Return an instance with created data.
$crud = $crud->create($data);
update
Return an instance with updated data.
$crud = $crud->update($data);
delete
Return an instance with deleted data.
$crud = $crud->delete();