yf_db_utils_helper_view class| File | plugins/db/classes/db/yf_db_utils_helper_view.class.php |
|---|---|
| Use | _class('db_utils_helper_view', 'classes/db/') |
| Property | Default | Description |
|---|---|---|
| None declared in this class. | ||
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);
}
public function drop($extra = [], &$error = false)
public function drop($extra = [], &$error = false)
{
return $this->utils->drop_view($this->db_name . '.' . $this->view, $extra, $error);
}
public function exists($extra = [], &$error = false)
public function exists($extra = [], &$error = false)
{
return $this->utils->view_exists($this->db_name . '.' . $this->view, $extra, $error);
}
public function info($extra = [], &$error = false)
public function info($extra = [], &$error = false)
{
return $this->utils->view_info($this->db_name . '.' . $this->view, $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;
}