/** * presenting the translation dialog * */ function showTranslate() { // If direct translation then close the modal window if ($direct = intval(JRequest::getVar("direct", 0))) { $this->modalClose($direct); return; } FalangControllerHelper::_setupContentElementCache(); $this->showTranslationOverview($this->_select_language_id, $this->_catid); }
/** * Joom!Fish Controler for the Control Panel * @param array configuration * @return joomfishTasker */ 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', FALANG_ADMINPATH); JLoader::import('classes.JCacheStorageJFDB', FALANG_ADMINPATH); FalangControllerHelper::_checkDBCacheStructure(); FalangControllerHelper::_checkDBStructure(); if (!FalangControllerHelper::_testSystemBotState()) { echo "<div style='font-size:16px;font-weight:bold;color:red'>" . JText::_('COM_FALANG_TEST_SYSTEM_ERROR') . "</div>"; } }
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', FALANG_ADMINPATH); //v 1.4 remove cache table creation and check //JLoader::import( 'classes.JCacheStorageJFDB',FALANG_ADMINPATH); //FalangControllerHelper::_checkDBCacheStructure(); FalangControllerHelper::_checkDBStructure(); if (!FalangControllerHelper::_testSystemBotState()) { //todo mettre l'affichage dans la vue $msg = '<div class="alert alert-warning">'; $msg .= '<h4>' . JText::_('COM_FALANG_TEST_SYSTEM_WARNING') . '</h4>'; $msg .= '<p>' . JText::_('COM_FALANG_TEST_SYSTEM_WARNING_MSG') . '</p>'; $msg .= '</div>'; echo $msg; } }
function showCElementConfig() { $db = JFactory::getDBO(); FalangControllerHelper::_setupContentElementCache(); $this->showElementOverview(); }
/** * presenting the translation dialog * */ function showTranslate() { $input = JFactory::getApplication()->input; $direct = $input->get('direct', '0', 'int'); // If direct translation then close the modal window if ($direct > 0) { $this->modalClose($direct); return; } //TODO : check if the next method is still necessary FalangControllerHelper::_setupContentElementCache(); $this->showTranslationOverview($this->_select_language_id, $this->_catid); }