yf_db_utils_helper_table class

Fileplugins/db/classes/db/yf_db_utils_helper_table.class.php
Use_class('db_utils_helper_table', 'classes/db/')

Public properties

PropertyDefaultDescription
None declared in this class.

Public methods 19

alter

public function alter(array $data, $extra = [], &$error = false)
  • $data array
    public function alter(array $data, $extra = [], &$error = false)
    {
        return $this->utils->alter_table($this->db_name . '.' . $this->table, $data, $extra, $error);
    }

check

public function check($extra = [], &$error = false)
    public function check($extra = [], &$error = false)
    {
        return $this->utils->check_table($this->db_name . '.' . $this->table, $extra, $error);
    }

column

public function column($name, $extra = [], &$error = false)
    public function column($name, $extra = [], &$error = false)
    {
        return $this->utils->column($this->db_name, $this->table, $name, $extra, $error);
    }

columns

public function columns($extra = [], &$error = false)
    public function columns($extra = [], &$error = false)
    {
        return $this->utils->list_columns($this->db_name . '.' . $this->table, $extra, $error);
    }

create

public function create(array $data, $extra = [], &$error = false)
  • $data array
    public function create(array $data, $extra = [], &$error = false)
    {
        return $this->utils->create_table($this->db_name . '.' . $this->table, $data, $extra, $error);
    }

drop

public function drop($extra = [], &$error = false)
    public function drop($extra = [], &$error = false)
    {
        return $this->utils->drop_table($this->db_name . '.' . $this->table, $extra, $error);
    }

exists

public function exists($extra = [], &$error = false)
    public function exists($extra = [], &$error = false)
    {
        return $this->utils->table_exists($this->db_name . '.' . $this->table, $extra, $error);
    }

foreign_key

public function foreign_key($name, $extra = [], &$error = false)
    public function foreign_key($name, $extra = [], &$error = false)
    {
        return $this->utils->foreign_key($this->db_name, $this->table, $name, $extra, $error);
    }

foreign_keys

public function foreign_keys($extra = [], &$error = false)
    public function foreign_keys($extra = [], &$error = false)
    {
        return $this->utils->list_foreign_keys($this->db_name . '.' . $this->table, $extra, $error);
    }

index

public function index($name, $extra = [], &$error = false)
    public function index($name, $extra = [], &$error = false)
    {
        return $this->utils->index($this->db_name, $this->table, $name, $extra, $error);
    }

indexes

public function indexes($extra = [], &$error = false)
    public function indexes($extra = [], &$error = false)
    {
        return $this->utils->list_indexes($this->db_name . '.' . $this->table, $extra, $error);
    }

info

public function info($extra = [], &$error = false)
    public function info($extra = [], &$error = false)
    {
        return $this->utils->table_info($this->db_name . '.' . $this->table, $extra, $error);
    }

optimize

public function optimize($extra = [], &$error = false)
    public function optimize($extra = [], &$error = false)
    {
        return $this->utils->optimize_table($this->db_name . '.' . $this->table, $extra, $error);
    }

rename

public function rename($new_name, $extra = [], &$error = false)
    public function rename($new_name, $extra = [], &$error = false)
    {
        return $this->utils->rename_table($this->db_name . '.' . $this->table, $new_name, $extra, $error);
    }

repair

public function repair($extra = [], &$error = false)
    public function repair($extra = [], &$error = false)
    {
        return $this->utils->repair_table($this->db_name . '.' . $this->table, $extra, $error);
    }

truncate

public function truncate($extra = [], &$error = false)
    public function truncate($extra = [], &$error = false)
    {
        return $this->utils->truncate_table($this->db_name . '.' . $this->table, $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;
    }