Пример #1
0
 /**
  * Method to get the field options.
  *
  * @return  array  The field option objects.
  *
  * @since   1.6
  */
 protected function getOptions()
 {
     $lang = JFactory::getLanguage();
     $options = array();
     $type = $this->form->getValue('db_type');
     // Some database drivers share DDLs; point these drivers to the correct parent
     if ($type == 'mysqli' || $type == 'pdomysql') {
         $type = 'mysql';
     } elseif ($type == 'sqlsrv') {
         $type = 'sqlazure';
     }
     // Get a list of files in the search path with the given filter.
     $files = JFolder::files(JPATH_INSTALLATION . '/sql/' . $type, '^sample.*\\.sql$');
     $currentLang = $lang->getTag();
     // BOF VIRTUEMART
     defined('DS') or define('DS', DIRECTORY_SEPARATOR);
     if (!class_exists('VmVirtueMart')) {
         require JPATH_INSTALLATION . DS . 'helper' . DS . 'virtuemart.php';
     }
     VmVirtueMart::loadVMLanguage($currentLang);
     $sampleNoneText = JText::_('INSTL_SITE_INSTALL_SAMPLE_NONE') . '<br/><strong>' . JText::_('COM_VIRTUEMART_INSTL_SITE_INSTALL_SAMPLE_NONE') . '</strong>';
     // Add option to not install sample data.
     $options[] = JHtml::_('select.option', '', JHtml::_('tooltip', JText::_('INSTL_SITE_INSTALL_SAMPLE_NONE_DESC'), '', '', $sampleNoneText));
     // EOF VIRTUEMART
     // Build the options list from the list of files.
     if (is_array($files)) {
         foreach ($files as $file) {
             $options[] = JHtml::_('select.option', $file, $lang->hasKey($key = 'INSTL_' . ($file = JFile::stripExt($file)) . '_SET') ? JHtml::_('tooltip', JText::_('INSTL_' . strtoupper($file = JFile::stripExt($file)) . '_SET_DESC'), '', '', JText::_('INSTL_' . ($file = JFile::stripExt($file)) . '_SET')) : $file);
         }
     }
     // Merge any additional options in the XML definition.
     $options = array_merge(parent::getOptions(), $options);
     return $options;
 }
Пример #2
0
 * @package    Joomla.Installation
 *
 * @copyright  Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
$lang = JFactory::getLanguage();
$currentLang = $lang->getTag();
// BOF VIRTUEMART
defined('DS') or define('DS', DIRECTORY_SEPARATOR);
if (!class_exists('VmVirtueMart')) {
    require JPATH_INSTALLATION . DS . 'helper' . DS . 'virtuemart.php';
}
$lang = JFactory::getLanguage();
$currentLang = $lang->getTag();
VmVirtueMart::loadVMLanguage($currentLang);
// EOF VIRTUEMART
/* @var InstallationViewRemoveHtml $this */
?>
<form action="index.php" method="post" id="adminForm" class="form-validate form-horizontal">
	<div class="alert alert-error inlineError" id="theDefaultError" style="display: none">
		<h4 class="alert-heading"><?php 
echo JText::_('JERROR');
?>
</h4>
		<p id="theDefaultErrorMessage"></p>
	</div>
	<div class="alert alert-success">
	<h3><?php 
echo JText::_('INSTL_COMPLETE_TITLE');
?>