function views_plugin_cache::init
3.x views_plugin_cache.inc | views_plugin_cache::init(&$view, &$display) |
2.x views_plugin_cache.inc | views_plugin_cache::init(&$view, &$display) |
Initialize the plugin.
Parameters
$view: The view object.
$display: The display handler.
File
- plugins/
views_plugin_cache.inc, line 38 - Definition of views_plugin_cache.
Class
- views_plugin_cache
- The base plugin to handle caching.
Code
function init(&$view, &$display) {
$this->view = &$view;
$this->display = &$display;
if (is_object($display->handler)) {
$options = $display->handler->get_option('cache');
// Overlay incoming options on top of defaults
$this->unpack_options($this->options, $options);
}
}