function views_plugin_display::get_cache_plugin
2.x views_plugin_display.inc | views_plugin_display::get_cache_plugin($name = NULL) |
Get the cache plugin
4 calls to views_plugin_display::get_cache_plugin()
- views_plugin_display::options_form in plugins/
views_plugin_display.inc - Provide the default form for setting options.
- views_plugin_display::options_submit in plugins/
views_plugin_display.inc - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
- views_plugin_display::options_summary in plugins/
views_plugin_display.inc - Provide the default summary for options in the views UI.
- views_plugin_display::options_validate in plugins/
views_plugin_display.inc - Validate the options form.
File
- plugins/
views_plugin_display.inc, line 535 - Contains the base display plugin.
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
function get_cache_plugin($name = NULL) {
if (!$name) {
$cache = $this->get_option('cache');
$name = $cache['type'];
}
$plugin = views_get_plugin('cache', $name);
if ($plugin) {
$plugin->init($this->view, $this->display);
return $plugin;
}
}