yf_db_utils_helper_column class| File | plugins/db/classes/db/yf_db_utils_helper_column.class.php |
|---|---|
| Use | _class('db_utils_helper_column', 'classes/db/') |
| Property | Default | Description |
|---|---|---|
| None declared in this class. | ||
public function add(array $data, $extra = [], &$error = false)
$data array public function add(array $data, $extra = [], &$error = false)
{
return $this->utils->add_column($this->db_name . '.' . $this->table, $this->col, $data, $extra, $error);
}
public function alter(array $data, $extra = [], &$error = false)
$data array public function alter(array $data, $extra = [], &$error = false)
{
return $this->utils->alter_column($this->db_name . '.' . $this->table, $this->col, $data, $extra, $error);
}
public function drop($extra = [], &$error = false)
public function drop($extra = [], &$error = false)
{
return $this->utils->drop_column($this->db_name . '.' . $this->table, $this->col, $extra, $error);
}
public function exists($extra = [], &$error = false)
public function exists($extra = [], &$error = false)
{
return $this->utils->column_exists($this->db_name . '.' . $this->table, $this->col, $extra, $error);
}
public function info($extra = [], &$error = false)
public function info($extra = [], &$error = false)
{
return $this->utils->column_info($this->db_name . '.' . $this->table, $this->col, $extra, $error);
}
public function rename($new_name, $extra = [], &$error = false)
public function rename($new_name, $extra = [], &$error = false)
{
return $this->utils->rename_column($this->db_name . '.' . $this->table, $this->col, $new_name, $extra, $error);
}
_ hooks and helpers; not routable as page actionspublic function __call($name, $args)
Catch missing method call.
public function __call($name, $args)
{
return main()->extend_call($this, $name, $args);
}
public function __clone()
We cleanup object properties when cloning.
public function __clone()
{
foreach ((array) get_object_vars($this) as $k => $v) {
$this->$k = null;
}
}
public function _setup($params)
public function _setup($params)
{
foreach ($params as $k => $v) {
$this->$k = $v;
}
return $this;
}