/** * Constructor * * @access protected * @return void * @since 1.5.5 */ function __construct() { parent::__construct(); // Set view if (JRequest::getCmd('view') != 'mini') { JRequest::setVar('view', 'control'); } }
/** * Displays the default upload form * * @param boolean $cachable If true, the view output will be cached * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * @return void * @since 2.0 */ public function display($cachable = false, $urlparams = false) { // Access check if (!$this->_config->get('jg_disableunrequiredchecks') && !count(JoomHelper::getAuthorisedCategories('joom.upload'))) { $this->setRedirect(JRoute::_($this->_ambit->getRedirectUrl('categories'), false), JText::_('No categories found into which you are allowed to upload'), 'notice'); return; } parent::display($cachable, $urlparams); }
/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { parent::__construct(); // Set view JRequest::setVar('view', 'comments'); // Register tasks $this->registerTask('unpublish', 'publish'); $this->registerTask('reject', 'approve'); }
/** * Constructor * * @access protected * @return void * @since 1.5.5 */ function __construct() { parent::__construct(); // Access check if (!JFactory::getUser()->authorise('core.admin', _JOOM_OPTION)) { $this->setRedirect(JRoute::_($this->_ambit->getRedirectUrl(''), false), 'You are not allowed to configure this component', 'notice'); $this->redirect(); } // Set view JRequest::setVar('view', 'cssedit'); $this->file = JPATH_ROOT . '/media/joomgallery/css/joom_local.css'; // Register task $this->registerTask('apply', 'save'); }
/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { parent::__construct(); // Access check if (!JFactory::getUser()->authorise('core.admin', _JOOM_OPTION)) { $this->setRedirect(JRoute::_($this->_ambit->getRedirectUrl(''), false), 'You are not allowed to configure this component', 'notice'); $this->redirect(); } // Set view JRequest::setVar('view', 'maintenance'); $this->registerTask('parsefolders', 'check'); $this->registerTask('checkimages', 'check'); $this->registerTask('checkcategories', 'check'); $this->registerTask('createfilesuggestions', 'check'); $this->registerTask('createfoldersuggestions', 'check'); }
/** * Migrates another gallery to JoomGallery * * @access public * @return void * @since 1.5.5 */ function migrate() { jimport('joomla.filesystem.file'); $migration = JRequest::getCmd('migration', ''); $task = JRequest::getCmd('task'); if (!JFile::exists(JPATH_COMPONENT . '/helpers/migration/migrate' . $migration . '.php')) { $this->setRedirect('index.php?option=' . _JOOM_OPTION . '&controller=migration'); return; } require_once JPATH_COMPONENT . '/helpers/migration/migrate' . $migration . '.php'; $classname = 'JoomMigrate' . $migration; $migrateclass = new $classname(); ob_start(); $migrateclass->{$task}(); JFactory::getApplication()->setUserState('joom.migration.output', ob_get_contents()); ob_end_clean(); if ($task == 'check') { parent::display(); } }
/** * Constructor * * @access protected * @return void * @since 3.1 */ function __construct() { parent::__construct(); // Set view JRequest::setVar('view', 'changelog'); }
/** * Constructor * * @access protected * @return void * @since 1.5.5 */ function __construct() { parent::__construct(); // Set view JRequest::setVar('view', 'help'); }
/** * Displays the edit form of a category * * @access public * @return void * @since 1.5.5 */ function edit() { JRequest::setVar('view', 'category'); JRequest::setVar('layout', 'form'); JRequest::setVar('hidemainmenu', 1); parent::display(); }
/** * Displays the move form * * @return void * @since 1.5.5 */ public function showmove() { JRequest::setVar('view', 'move'); JRequest::setVar('hidemainmenu', 1); parent::display(); }
/** * Displays the edit form of a config row * * @return void * @since 2.0 */ public function edit() { JRequest::setVar('view', 'config'); JRequest::setVar('hidemainmenu', 1); parent::display(); }