yf_db_utils_helper_view class

Fileplugins/db/classes/db/yf_db_utils_helper_view.class.php
Use_class('db_utils_helper_view', 'classes/db/')

Public properties

PropertyDefaultDescription
None declared in this class.

Public methods 7

create

public function create($sql_as, $extra = [], &$error = false)
    public function create($sql_as, $extra = [], &$error = false)
    {
        return $this->utils->create_view($this->db_name . '.' . $this->view, $sql_as, $extra, $error);
    }

drop

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

exists

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

info

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