Source for file sample.php
Documentation is available at sample.php
* @package Joomla.Installation
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Sample data Form Field class.
* @package Joomla.Installation
protected $type =
'Sample';
* Method to get the field options.
* @return array The field option objects.
$type =
$this->form->getValue('db_type');
// Some database drivers share DDLs; point these drivers to the correct parent
elseif ($type ==
'sqlsrv')
// Get a list of files in the search path with the given filter.
// Add option to not install sample data.
$options[] =
JHtml::_('select.option', '',
JHtml::_('tooltip', JText::_('INSTL_SITE_INSTALL_SAMPLE_NONE_DESC'), '', '', JText::_('INSTL_SITE_INSTALL_SAMPLE_NONE'))
// Build the options list from the list of files.
foreach ($files as $file)
$options[] =
JHtml::_('select.option', $file, $lang->hasKey($key =
'INSTL_' .
($file =
JFile::stripExt($file)) .
'_SET') ?
// Merge any additional options in the XML definition.
* Method to get the field input markup.
* @return string The field input markup.
if ($conf->get('sampledata'))
$this->value =
$conf->get('sampledata');
Documentation generated on Tue, 19 Nov 2013 15:12:35 +0100 by phpDocumentor 1.4.3