yf_db_utils_helper_column class

Fileplugins/db/classes/db/yf_db_utils_helper_column.class.php
Use_class('db_utils_helper_column', 'classes/db/')

Public properties

PropertyDefaultDescription
None declared in this class.

Public methods 9

add

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);
    }

alter

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);
    }

drop

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);
    }

exists

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);
    }

info

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);
    }

rename

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);
    }

Methods starting with _ hooks and helpers; not routable as page actions

__call

public function __call($name, $args)

Catch missing method call.

    public function __call($name, $args)
    {
        return main()->extend_call($this, $name, $args);
    }

__clone

public function __clone()

We cleanup object properties when cloning.

    public function __clone()
    {
        foreach ((array) get_object_vars($this) as $k => $v) {
            $this->$k = null;
        }
    }

_setup

public function _setup($params)
    public function _setup($params)
    {
        foreach ($params as $k => $v) {
            $this->$k = $v;
        }
        return $this;
    }