function views_plugin_cache::init in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 plugins/views_plugin_cache.inc \views_plugin_cache::init()
- 7.3 plugins/views_plugin_cache.inc \views_plugin_cache::init()
Initialize the plugin.
Parameters
$view: The view object.
$display: The display handler.
Overrides views_plugin::init
File
- plugins/
views_plugin_cache.inc, line 27
Class
- views_plugin_cache
- The base plugin to handle caching.
Code
function init(&$view, &$display) {
$this->view =& $view;
$this->display =& $display;
$this->options = array();
if (is_object($display->handler)) {
// Note: The below is read only.
$this->options = $display->handler
->get_option('cache');
}
}