-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
void $this->_set_write_requires_pks(bool);
void $this->_set_use_transactions(bool);
bool $this->_set_table($table);
bool $this->_set_fields();
bool $this->_add_field($field, $settings = array());
bool $this->_set_field_setting($field, $setting, $value);
bool $this->_add_validate_field($field, $validation);
bool $this->_add_required_field($field, $operation = 'all');
bool $this->_add_protected_field($field);
bool $this->_add_primary_key($field);
bool $this->_add_foreign_table($table, $model, $foreign_keys, $insert = TRUE, $update = TRUE, $delete = TRUE, $cascade = FALSE);
bool $this->_run_check($check_table = FALSE, $check_fields = FALSE);
bool $this->_check_table();
bool $this->_check_fields();
int $this->num_rows();
int $this->affected_rows();
object $this->select($select = '*', $escape = NULL);
object $this->select_max($select = '', $alias = '');
object $this->select_min($select = '', $alias = '');
object $this->select_avg($select = '', $alias = '');
object $this->select_sum($select = '', $alias = '');
object $this->distinct($val = TRUE);
object $this->join($table, $cond, $type = '');
object $this->where($key, $value = NULL, $escape = TRUE);
object $this->or_where($key, $value = NULL, $escape = TRUE);
object $this->where_in($key = NULL, $values = NULL);
object $this->or_where_in($key = NULL, $values = NULL);
object $this->where_not_in($key = NULL, $values = NULL);
object $this->or_where_not_in($key = NULL, $values = NULL);
object $this->like($field, $match = '', $side = 'both');
object $this->not_like($field, $match = '', $side = 'both');
object $this->or_like($field, $match = '', $side = 'both');
object $this->or_not_like($field, $match = '', $side = 'both');
object $this->group_by($by);
object $this->having($key, $value = '', $escape = TRUE);
object $this->or_having($key, $value = '', $escape = TRUE);
object $this->order_by($orderby, $direction = '');
object $this->limit($value, $offset = '');
object $this->offset($offset);
array|bool $this->get($where = NULL, $select = NULL, $order_by = NULL, $group_by = NULL, $limit = NULL, $offset = NULL, $join = NULL, $escape = TRUE, $auto_format = TRUE);
array|bool $this->get_record($where = NULL, $select = NULL, $join = NULL, $escape = TRUE, $auto_format = TRUE);
int|bool $this->count($where = NULL, $join = NULL, $escape = TRUE);
bool $this->record_exists($where = NULL, $join = NULL, $escape = TRUE);
array|bool $this->insert($data, $foreign_data = NULL, $defaults_override = FALSE, $do_foreign = TRUE, $override_transactions = NULL);
array|bool $this->insert_all($records, $defaults_override = FALSE, $do_foreign = TRUE, $override_transactions = NULL);
bool $this->update($data, $foreign_data = NULL, $defaults_override = FALSE, $do_foreign = TRUE, $override_transactions = NULL);
bool $this->update_where($data, $where = NULL, $foreign_data = NULL, $defaults_override = FALSE, $do_foreign = TRUE, $override_transactions = NULL, $escape = TRUE);
bool $this->update_all($records, $defaults_override = FALSE, $do_foreign = TRUE, $override_transactions = NULL);
bool $this->delete($where, $do_foreign = TRUE, $override_transactions = NULL, $escape = TRUE);
bool $this->delete_all($do_foreign = TRUE, $override_transactions = NULL);