/** * Joom!Fish Controler for the Control Panel * @param array configuration * @return joomfishTasker */ public function __construct($config = array()) { parent::__construct($config); $this->registerTask('show', 'display'); // ensure DB cache table is created and up to date JLoader::import('helpers.controllerHelper', JOOMFISH_ADMINPATH); JLoader::import('classes.JCacheStorageJFDB', JOOMFISH_ADMINPATH); JoomfishControllerHelper::checkDBCacheStructure(); }
/** * presenting the translation dialog * */ function showTranslate() { // If direct translation then close the modal window if (intval(JRequest::getVar("direct", 0))) { $this->modalClose(); return; } JoomfishControllerHelper::_setupContentElementCache(); if (!JoomfishControllerHelper::_testSystemBotState()) { echo "<div style='font-size:16px;font-weight:bold;color:red'>" . JText::_('MAMBOT_ERROR') . "</div>"; } $this->showTranslationOverview($this->_select_language_id, $this->_catid); }
/** * Shows the content element configuration overview * @return void */ public function showCElementConfig() { $db = JFactory::getDBO(); JoomfishControllerHelper::setupContentElementCache(); $this->showElementOverview(); }