function views_object::destroy

Same name in other branches
  1. 7.x-3.x includes/base.inc \views_object::destroy()
2 calls to views_object::destroy()
views_plugin_display::destroy in plugins/views_plugin_display.inc
views_plugin_style::destroy in plugins/views_plugin_style.inc
2 methods override views_object::destroy()
views_plugin_display::destroy in plugins/views_plugin_display.inc
views_plugin_style::destroy in plugins/views_plugin_style.inc

File

includes/base.inc, line 180

Class

views_object
Basic definition for many views objects

Code

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