| | |
| | | | program/include/rcube_plugin_api.php | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2008-2009, The Roundcube Dev Team | |
| | | | Copyright (C) 2008-2011, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | private $actionmap = array(); |
| | | private $objectsmap = array(); |
| | | private $template_contents = array(); |
| | | private $required_plugins = array('filesystem_attachments'); |
| | | private $required_plugins = array('filesystem_attachments', 'jqueryui'); |
| | | private $active_hook = false; |
| | | |
| | | // Deprecated names of hooks, will be removed after 0.5-stable release |
| | |
| | | if (is_subclass_of($plugin, 'rcube_plugin')) { |
| | | // ... task, request type and framed mode |
| | | if ((!$plugin->task || preg_match('/^('.$plugin->task.')$/i', $rcmail->task)) |
| | | && (!$plugin->noajax || is_a($rcmail->output, 'rcube_template')) |
| | | && (!$plugin->noajax || (is_object($rcmail->output) && is_a($rcmail->output, 'rcube_template'))) |
| | | && (!$plugin->noframe || empty($_REQUEST['_framed'])) |
| | | ) { |
| | | $plugin->init(); |
| | |
| | | |
| | | |
| | | /** |
| | | * Returns list of loaded plugins names |
| | | * |
| | | * @return array List of plugin names |
| | | */ |
| | | public function loaded_plugins() |
| | | { |
| | | return array_keys($this->plugins); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Callback for template_container hooks |
| | | * |
| | | * @param array $attrib |