function views_object::destroy

Same name in other branches
  1. 6.x-3.x includes/base.inc \views_object::destroy()

Destructor.

2 calls to views_object::destroy()
views_plugin_display::destroy in plugins/views_plugin_display.inc
Destructor.
views_plugin_style::destroy in plugins/views_plugin_style.inc
Destructor.
2 methods override views_object::destroy()
views_plugin_display::destroy in plugins/views_plugin_display.inc
Destructor.
views_plugin_style::destroy in plugins/views_plugin_style.inc
Destructor.

File

includes/base.inc, line 230

Class

views_object
Provides the basic object definitions used by plugins and handlers.

Code

public function destroy() {
    if (isset($this->view)) {
        unset($this->view);
    }
    if (isset($this->display)) {
        unset($this->display);
    }
    if (isset($this->query)) {
        unset($this->query);
    }
}