Ejemplo n.º 1
0
 function display($tpl = null)
 {
     $this->canDo = VMMigrateHelperVMMigrate::getActions();
     $this->config = new VMMigrateHelperConfig();
     $this->addToolbar();
     parent::display($tpl);
 }
Ejemplo n.º 2
0
 /**
  * display task
  *
  * @return void
  */
 function display($cachable = false, $urlparams = false)
 {
     // Load the submenu.
     VMMigrateHelperVMMigrate::addSubmenu(JRequest::getCmd('view', 'rules'));
     // set default view if not set
     JRequest::setVar('view', JRequest::getCmd('view', 'upgrade'));
     // call parent behavior
     parent::display($cachable);
 }
Ejemplo n.º 3
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->canDo = VMMigrateHelperVMMigrate::getActions();
     $this->addToolbar();
     VMMigrateHelperVMMigrate::setJoomlaVersionLayout($this);
     parent::display($tpl);
 }
Ejemplo n.º 4
0
 public static function getExtensionsRssFeed()
 {
     if (empty(self::$extFeeds)) {
         self::$extFeeds = VMMigrateHelperVMMigrate::getCPsRssFeed("https://www.daycounts.com/shop/migrator-addons/by,ordering/?format=feed&type=rss", 50);
     }
     return self::$extFeeds;
 }
Ejemplo n.º 5
0
 public function getInput()
 {
     JLoader::discover('VMMigrateHelper', JPATH_ADMINISTRATOR . '/components/com_vmmigrate/helpers');
     VMMigrateHelperVMMigrate::loadCssJs();
     return '';
 }
Ejemplo n.º 6
0
</button>
        </div>
        <div class="filter-select fltrt">
            <select name="filter_extension" class="inputbox" onchange="this.form.submit()">
				<?php 
echo JHtml::_('select.options', VMMigrateHelperVMMigrate::GetMigratorsOptions(), 'value', 'text', $this->state->get('filter.extension'));
?>
			</select>
            <select name="filter_task" class="inputbox" onchange="this.form.submit()">
				<?php 
echo JHtml::_('select.options', VMMigrateHelperVMMigrate::GetMigratorsStepsOptions($this->state->get('filter.extension')), 'value', 'text', $this->state->get('filter.task'));
?>
			</select>
            <select name="filter_state" class="inputbox" onchange="this.form.submit()">
				<?php 
echo JHtml::_('select.options', VMMigrateHelperVMMigrate::GetLogStatesOptions(), 'value', 'text', $this->state->get('filter.state'));
?>
			</select>
		</div>
	</fieldset>
	<div class="clr"> </div>
        <table class="adminlist table table-striped">
		<thead>
			<tr>
               <th width="1%">
					<input type="checkbox" name="checkall-toggle" value="" title="<?php 
echo JText::_('JGLOBAL_CHECK_ALL');
?>
" onclick="Joomla.checkAll(this)" />
				</th>                                
				<th class="title" width="10%">
Ejemplo n.º 7
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $this->canDo = VMMigrateHelperVMMigrate::getActions();
     $app = JFactory::getApplication();
     $params = JComponentHelper::getParams('com_vmmigrate');
     $jversion = new JVersion();
     $joomla_version_dest = $jversion->getShortVersion();
     if ($params->get('show_spash_config', 1)) {
         $app->enqueueMessage(JText::_('VMMIGRATE_PLEASE_CONFIGURE'), 'warning');
     } else {
         //print_a($helper->isValidConnection());
         $valid_database_connection = VMMigrateHelperDatabase::isValidConnection();
         if (!$valid_database_connection) {
             if (version_compare($joomla_version_dest, 3, 'gt')) {
             } else {
                 $app->enqueueMessage(JText::_('VMMIGRATE_SOURCE_DATABASE_CONNECTION_WARNING'), 'warning');
             }
             //$exception = new JException(JText::_('VMMIGRATE_SOURCE_DATABASE_CONNECTION_WARNING'),100,E_WARNING);
             //JError::throwError($exception);
         } else {
             //$readonlyuser = VMMigrateHelperDatabase::isReadonlyUser();
             //if (!$readonlyuser) {
             //	$exception = new JException(JText::_('VMMIGRATE_SOURCE_DATABASE_RIGHTS_WARNING'),100,E_NOTICE);
             //	JError::throwError($exception);
             //}
             $validPrefix = VMMigrateHelperDatabase::isValidPrefix();
             if (!$validPrefix) {
                 $app->enqueueMessage(JText::_('VMMIGRATE_SOURCE_DATABASE_PREFIX_WARNING'), 'warning');
                 //$exception = new JException(JText::_('VMMIGRATE_SOURCE_DATABASE_PREFIX_WARNING'),100,E_WARNING);
                 //JError::throwError($exception);
             }
         }
         $valid_source_path = VMMigrateHelperFilesystem::isValidConnection();
         if (!$valid_source_path) {
             $app->enqueueMessage(JText::_('VMMIGRATE_SOURCE_PATH_STATUS_WARNING'), 'warning');
             //$exception = new JException(JText::_('VMMIGRATE_SOURCE_PATH_STATUS_WARNING'),100,E_WARNING);
             //JError::throwError($exception);
         }
         if (JDEBUG) {
             $app->enqueueMessage(JText::_('VMMIGRATE_TURN_OFF_DEBUG'), 'warning');
             //$exception = new JException(JText::_('VMMIGRATE_TURN_OFF_DEBUG'),100,E_NOTICE);
             //JError::throwError($exception);
         }
     }
     VMMigrateHelperVMMigrate::loadCssJs();
     $this->extensions = VMMigrateHelperVMMigrate::GetMigrators();
     $this->steps = VMMigrateHelperVMMigrate::GetMigratorsSteps($this->extensions);
     if ($params->get('show_not_pro', 0)) {
         $this->demoextensions = VMMigrateHelperVMMigrate::GetMigratorsDemo();
         $this->demosteps = VMMigrateHelperVMMigrate::GetMigratorsDemoSteps();
     }
     $this->demoextensions = array();
     $this->isPro = VMMigrateHelperVMMigrate::GetMigratorsPro($this->extensions);
     $this->addToolbar();
     VMMigrateHelperVMMigrate::setJoomlaVersionLayout($this);
     $this->extensionsFeed = VMMigrateHelperVMMigrate::getExtensionsRssFeed();
     parent::display($tpl);
 }