0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: element.tar
componentlayouts.php 0000666 00000005366 15137262015 0010720 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; require_once dirname(__FILE__) . '/list.php'; /** * Parameter to display a list of the layouts for a component view from the extension or default template overrides. * * @package Joomla.Platform * @subpackage Parameter * @see JFormFieldComponentLayout * @note When replacing take note that JFormFieldComponentLayout does not end in s. * @since 11.1 * @deprecated Use JFormFieldComponentLayouts instead */ class JElementComponentLayouts extends JElementList { /** * @var string */ protected $_name = 'ComponentLayouts'; /** * Get the options for the list. * * @param JXMLElement &$node JXMLElement node object containing the settings for the element * * @return array * * @since 11.1 * * @deprecated 12.1 * @see JFormFieldComponentLayout */ protected function _getOptions(&$node) { // Deprecation warning. JLog::add('JElementComponentLayouts::_getOptions() is deprecated.', JLog::WARNING, 'deprecated'); $options = array(); $path1 = null; $path2 = null; // Load template entries for each menuid $db = JFactory::getDBO(); $query = 'SELECT template' . ' FROM #__template_styles' . ' WHERE client_id = 0 AND home = 1'; $db->setQuery($query); $template = $db->loadResult(); if ($view = $node->attributes('view') && $extn = $node->attributes('extension')) { $view = preg_replace('#\W#', '', $view); $extn = preg_replace('#\W#', '', $extn); $path1 = JPATH_SITE . '/components/' . $extn . '/views/' . $view . '/tmpl'; $path2 = JPATH_SITE . '/templates/' . $template . '/html/' . $extn . '/' . $view; $options[] = JHtml::_('select.option', '', JText::_('JOPTION_USE_MENU_REQUEST_SETTING')); } if ($path1 && $path2) { jimport('joomla.filesystem.file'); $path1 = JPath::clean($path1); $path2 = JPath::clean($path2); $files = JFolder::files($path1, '^[^_]*\.php$'); foreach ($files as $file) { $options[] = JHtml::_('select.option', JFile::stripExt($file)); } if (is_dir($path2) && $files = JFolder::files($path2, '^[^_]*\.php$')) { $options[] = JHtml::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT_TEMPLATE')); foreach ($files as $file) { $options[] = JHtml::_('select.option', JFile::stripExt($file)); } $options[] = JHtml::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT_TEMPLATE')); } } // Merge any additional options in the XML definition. $options = array_merge(parent::_getOptions($node), $options); return $options; } } usergroup.php 0000666 00000003366 15137262015 0007326 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a editors element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated 12.1 Use JFormFieldUserGroup instead. */ class JElementUserGroup extends JElement { /** * Element name * * @var string */ protected $_name = 'UserGroup'; /** * Fetch the timezones element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 Use JFormFieldUserGroup::getInput instead. * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementUserGroup::_fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); $ctrl = $control_name . '[' . $name . ']'; $attribs = ' '; if ($v = $node->attributes('size')) { $attribs .= 'size="' . $v . '"'; } if ($v = $node->attributes('class')) { $attribs .= 'class="' . $v . '"'; } else { $attribs .= 'class="inputbox"'; } if ($m = $node->attributes('multiple')) { $attribs .= 'multiple="multiple"'; $ctrl .= '[]'; //$value = implode('|',) } //array_unshift($editors, JHtml::_('select.option', '', '- '. JText::_('SELECT_EDITOR') .' -')); return JHtml::_('access.usergroup', $ctrl, $value, $attribs, false); } } spacer.php 0000666 00000003452 15137262015 0006544 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a spacer element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated 12.1 Use JFormFormFieldSpacer instead */ class JElementSpacer extends JElement { /** * Element name * * @var string */ protected $_name = 'Spacer'; /** * Fetch tooltip for a radio button * * @param string $label Element label * @param string $description Element description for tool tip * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * @param string $name The name. * * @return string * * @deprecated 12.1 * @since 11.1 */ public function fetchTooltip($label, $description, &$node, $control_name, $name) { return ' '; } /** * Fetch HTML for a radio button * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 Use JFormFieldSpacer::getInput instead. * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementSpcer::fetchElements() is deprecated.', JLog::WARNING, 'deprecated'); if ($value) { return JText::_($value); } else { return ' '; } } } contentlanguages.php 0000666 00000003356 15137262015 0010633 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; require_once dirname(__FILE__) . '/list.php'; /** * Renders a select list of Asset Groups * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated Use JFormFieldContentLanguage instead. * @note Be careful in replacing to note that JFormFieldConentLanguage does not end in s. */ class JElementContentLanguages extends JElementList { /** * Element name * * @var string */ protected $_name = 'ContentLanguages'; /** * Get the options for the element * * @param JXMLElement &$node JXMLElement node object containing the settings for the element * * @return array * * @since 11.1 * * @deprecated 12.1 Use JFormFieldContentLanguage::getOptions instead */ protected function _getOptions(&$node) { // Deprecation warning. JLog::add('JElementContentLanguages::_getOptions() is deprecated.', JLog::WARNING, 'deprecated'); $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select('a.lang_code AS value, a.title AS text, a.title_native'); $query->from('#__languages AS a'); $query->where('a.published >= 0'); $query->order('a.title'); // Get the options. $db->setQuery($query); $options = $db->loadObjectList(); // Check for a database error. if ($db->getErrorNum()) { JError::raiseWarning(500, $db->getErrorMsg()); } // Merge any additional options in the XML definition. $options = array_merge(parent::_getOptions($node), $options); return $options; } } category.php 0000666 00000003366 15137262015 0007110 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a category element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated Use JFormFieldCategory instead. */ class JElementCategory extends JElement { /** * Element name * * @var string */ protected $_name = 'Category'; /** * Fetch the element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @since 11.1 * @deprecated 12.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementCategory::fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); $db = JFactory::getDbo(); $extension = $node->attributes('extension'); $class = $node->attributes('class'); $filter = explode(',', $node->attributes('filter')); if (!isset($extension)) { // Alias for extension $extension = $node->attributes('scope'); if (!isset($extension)) { $extension = 'com_content'; } } if (!$class) { $class = "inputbox"; } if (count($filter) < 1) { $filter = null; } return JHtml::_( 'list.category', $control_name . '[' . $name . ']', $extension, $extension . '.view', $filter, (int) $value, $class, null, 1, $control_name . $name ); } } languages.php 0000666 00000003364 15137262015 0007237 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a languages element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated 12.1 Use JFormFieldLanguage instead * @note In updating please noe that JFormFieldLanguage does not end in s. */ class JElementLanguages extends JElement { /** * Element name * * @var string */ protected $_name = 'Languages'; /** * Fetch the language list element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 Use JFormFieldLanguage * @note When updating note that JFormFieldLanguage has no s. * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementLanguages::fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); $client = $node->attributes('client'); $languages = JLanguageHelper::createLanguageList($value, constant('JPATH_' . strtoupper($client)), true); array_unshift($languages, JHtml::_('select.option', '', JText::_('JOPTION_SELECT_LANGUAGE'))); return JHtml::_( 'select.genericlist', $languages, $control_name . '[' . $name . ']', array('id' => $control_name . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value) ); } } list.php 0000666 00000004325 15137262015 0006242 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a list element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated Use JFormFieldList instead */ class JElementList extends JElement { /** * Element type * * @var string */ protected $_name = 'List'; /** * Get the options for the element * * @param JXMLElement &$node JXMLElement node object containing the settings for the element * * @return array * * @since 11.1 * * @deprecated 12.1 Use JFormFieldList::getOptions Instead */ protected function _getOptions(&$node) { // Deprecation warning. JLog::add('JElementList::getOptions() is deprecated.', JLog::WARNING, 'deprecated'); $options = array(); foreach ($node->children() as $option) { $val = $option->attributes('value'); $text = $option->data(); $options[] = JHtml::_('select.option', $val, JText::_($text)); } return $options; } /** * Fetch the HTML code for the parameter element. * * @param string $name The field name. * @param mixed $value The value of the field. * @param JSimpleXMLElement &$node The current JSimpleXMLElement node. * @param string $control_name The name of the HTML control. * * @return string * * @deprecated 12.1 * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { $ctrl = $control_name . '[' . $name . ']'; $attribs = ' '; if ($v = $node->attributes('size')) { $attribs .= 'size="' . $v . '"'; } if ($v = $node->attributes('class')) { $attribs .= 'class="' . $v . '"'; } else { $attribs .= 'class="inputbox"'; } if ($m = $node->attributes('multiple')) { $attribs .= 'multiple="multiple"'; $ctrl .= '[]'; } return JHtml::_( 'select.genericlist', $this->_getOptions($node), $ctrl, array('id' => $control_name . $name, 'list.attr' => $attribs, 'list.select' => $value) ); } } helpsites.php 0000666 00000003363 15137262015 0007270 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a helpsites element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated Use JFormFieldHelpsite instead * @note When updating note that JformFieldHelpsite does not end in s. */ class JElementHelpsites extends JElement { /** * Element name * * @var string */ protected $_name = 'Helpsites'; /** * Fetch a help sites list * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 Use jFormFieldHelpSites::getOptions instead * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementHelpsites::fetchElement is deprecated.', JLog::WARNING, 'deprecated'); jimport('joomla.language.help'); // Get Joomla version. $version = new JVersion; $jver = explode('.', $version->getShortVersion()); $helpsites = JHelp::createSiteList(JPATH_ADMINISTRATOR . '/help/helpsites.xml', $value); array_unshift($helpsites, JHtml::_('select.option', '', JText::_('local'))); return JHtml::_( 'select.genericlist', $helpsites, $control_name . '[' . $name . ']', array('id' => $control_name . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value) ); } } index.html 0000666 00000000037 15137262015 0006547 0 ustar 00 <!DOCTYPE html><title></title> imagelist.php 0000666 00000002577 15137262015 0007254 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a imagelist element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated 12.1 Use JFormFieldImageList instead. */ class JElementImageList extends JElement { /** * Element name * * @var string */ protected $_name = 'ImageList'; /** * Fetch imagelist element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 Use JFormFieldImageLst instead. * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementImageList::fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); $filter = '\.png$|\.gif$|\.jpg$|\.bmp$|\.ico$'; $node->addAttribute('filter', $filter); $parameter = $this->_parent->loadElement('filelist'); return $parameter->fetchElement($name, $value, $node, $control_name); } } modulelayouts.php 0000666 00000005275 15137262015 0010202 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; require_once dirname(__FILE__) . '/list.php'; /** * Parameter to display a list of the layouts for a module from the module or default template overrides. * * @package Joomla.Platform * @subpackage Parameter * @note Note that JFormFieldModuleLayout does not end in s. * @since 11.1 * @deprecated Use JFormFieldModuleLayout instead */ class JElementModuleLayouts extends JElementList { /** * @var string */ protected $_name = 'ModuleLayouts'; /** * Get the options for the list. * * @param JXMLElement &$node JXMLElement node object containing the settings for the element * * @return string * * @deprecated 12.1 Use JFormFieldModuleLayouts::getInput instead. * @since 11.1 */ protected function _getOptions(&$node) { // Deprecation warning. JLog::add('JElementModuleLayouts::_getOptions() is deprecated.', JLog::WARNING, 'deprecated'); $clientId = ($v = $node->attributes('client_id')) ? $v : 0; $options = array(); $path1 = null; $path2 = null; // Load template entries for each menuid $db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select('template'); $query->from('#__template_styles'); $query->where('client_id = ' . (int) $clientId); $query->where('home = 1'); $db->setQuery($query); $template = $db->loadResult(); if ($module = $node->attributes('module')) { $base = ($clientId == 1) ? JPATH_ADMINISTRATOR : JPATH_SITE; $module = preg_replace('#\W#', '', $module); $path1 = $base . '/modules/' . $module . '/tmpl'; $path2 = $base . '/templates/' . $template . '/html/' . $module; $options[] = JHTML::_('select.option', '', ''); } if ($path1 && $path2) { jimport('joomla.filesystem.file'); $path1 = JPath::clean($path1); $path2 = JPath::clean($path2); $files = JFolder::files($path1, '^[^_]*\.php$'); foreach ($files as $file) { $options[] = JHTML::_('select.option', JFile::stripExt($file)); } if (is_dir($path2) && $files = JFolder::files($path2, '^[^_]*\.php$')) { $options[] = JHTML::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT')); foreach ($files as $file) { $options[] = JHTML::_('select.option', JFile::stripExt($file)); } $options[] = JHTML::_('select.optgroup', JText::_('JOPTION_FROM_DEFAULT')); } } // Merge any additional options in the XML definition. $options = array_merge(parent::_getOptions($node), $options); return $options; } } folderlist.php 0000666 00000004177 15137262015 0007443 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a filelist element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated 12.1 Use JFormFieldFolderList instead. */ class JElementFolderlist extends JElement { /** * Element name * * @var string */ protected $_name = 'Folderlist'; /** * Fetch a folderlist element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 Use JFormFieldFolderlist::getOptions instead. * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementFolderList::fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); jimport('joomla.filesystem.folder'); // Initialise variables. $path = JPATH_ROOT . '/' . $node->attributes('directory'); $filter = $node->attributes('filter'); $exclude = $node->attributes('exclude'); $folders = JFolder::folders($path, $filter); $options = array(); foreach ($folders as $folder) { if ($exclude) { if (preg_match(chr(1) . $exclude . chr(1), $folder)) { continue; } } $options[] = JHtml::_('select.option', $folder, $folder); } if (!$node->attributes('hide_none')) { array_unshift($options, JHtml::_('select.option', '-1', JText::_('JOPTION_DO_NOT_USE'))); } if (!$node->attributes('hide_default')) { array_unshift($options, JHtml::_('select.option', '', JText::_('JOPTION_USE_DEFAULT'))); } return JHtml::_( 'select.genericlist', $options, $control_name . '[' . $name . ']', array('id' => 'param' . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value) ); } } radio.php 0000666 00000003022 15137262015 0006356 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a radio element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated 12.1 Use JFormFieldRadio instead */ class JElementRadio extends JElement { /** * Element name * * @var string */ protected $_name = 'Radio'; /** * Fetch a html for a radio button * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 Use JFormFieldRadio::getInput and JFormFieldRadio::getOptions indsead. * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementRadio::fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); $options = array(); foreach ($node->children() as $option) { $val = $option->attributes('value'); $text = $option->data(); $options[] = JHtml::_('select.option', $val, $text); } return JHtml::_('select.radiolist', $options, '' . $control_name . '[' . $name . ']', '', 'value', 'text', $value, $control_name . $name, true); } } password.php 0000666 00000003045 15137262015 0007127 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a password element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated 12.1 Use JFormFieldPassword instead. */ class JElementPassword extends JElement { /** * Element name * * @var string */ protected $_name = 'Password'; /** * Fetch a html for a password element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 Use JFormFieldPasssword::getInput instead. * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementPassword::fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); $size = ($node->attributes('size') ? 'size="' . $node->attributes('size') . '"' : ''); $class = ($node->attributes('class') ? 'class="' . $node->attributes('class') . '"' : 'class="text_area"'); return '<input type="password" name="' . $control_name . '[' . $name . ']" id="' . $control_name . $name . '" value="' . $value . '" ' . $class . ' ' . $size . ' />'; } } filelist.php 0000666 00000004414 15137262015 0007101 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a filelist element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated use JFormFieldFileList instead */ class JElementFilelist extends JElement { /** * Element name * * @var string */ protected $_name = 'Filelist'; /** * Fetch a filelist element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 Use JFormFieldFileList::getOptions instead * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementFileList::fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); // path to images directory $path = JPATH_ROOT . '/' . $node->attributes('directory'); $filter = $node->attributes('filter'); $exclude = $node->attributes('exclude'); $stripExt = $node->attributes('stripext'); $files = JFolder::files($path, $filter); $options = array(); if (!$node->attributes('hide_none')) { $options[] = JHtml::_('select.option', '-1', JText::_('JOPTION_DO_NOT_USE')); } if (!$node->attributes('hide_default')) { $options[] = JHtml::_('select.option', '', JText::_('JOPTION_USE_DEFAULT')); } if (is_array($files)) { foreach ($files as $file) { if ($exclude) { if (preg_match(chr(1) . $exclude . chr(1), $file)) { continue; } } if ($stripExt) { $file = JFile::stripExt($file); } $options[] = JHtml::_('select.option', $file, $file); } } return JHtml::_( 'select.genericlist', $options, $control_name . '[' . $name . ']', array('id' => 'param' . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value) ); } } calendar.php 0000666 00000003141 15137262015 0007033 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a calendar element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated Use JFormFieldCalendar instead. */ class JElementCalendar extends JElement { /** * Element name * * @var string * @deprecated 12.1 * @since 11.1 */ protected $_name = 'Calendar'; /** * Fetch a calendar element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string HTML string for a calendar * * @deprecated 12.1 * @see JFormFieldCalendar * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementCalendar::fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); // Load the calendar behavior JHtml::_('behavior.calendar'); $format = ($node->attributes('format') ? $node->attributes('format') : '%Y-%m-%d'); $class = $node->attributes('class') ? $node->attributes('class') : 'inputbox'; $id = $control_name . $name; $name = $control_name . '[' . $name . ']'; return JHtml::_('calendar', $value, $name, $id, $format, array('class' => $class)); } } sql.php 0000666 00000003465 15137262015 0006072 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a SQL element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated 12.1 Use JFormFieldSQL Instead. */ class JElementSQL extends JElement { /** * Element name * * @var string */ protected $_name = 'SQL'; /** * Fetch the sql element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @deprecated 12.1 * @since 11.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementSQL::getOptions is deprecated.', JLog::WARNING, 'deprecated'); $db = JFactory::getDbo(); $db->setQuery($node->attributes('query')); $key = ($node->attributes('key_field') ? $node->attributes('key_field') : 'value'); $val = ($node->attributes('value_field') ? $node->attributes('value_field') : $name); $options = $db->loadObjectlist(); // Check for an error. if ($db->getErrorNum()) { JError::raiseWarning(500, $db->getErrorMsg()); return false; } if (!$options) { $options = array(); } return JHtml::_( 'select.genericlist', $options, $control_name . '[' . $name . ']', array( 'id' => $control_name . $name, 'list.attr' => 'class="inputbox"', 'list.select' => $value, 'option.key' => $key, 'option.text' => $val ) ); } } hidden.php 0000666 00000004056 15137262015 0006523 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * Renders a hidden element * * @package Joomla.Platform * @subpackage Parameter * @since 11.1 * @deprecated 12.1 Use JFormFieldHidden instead. */ class JElementHidden extends JElement { /** * Element name * * @var string * @since 11.1 */ protected $_name = 'Hidden'; /** * Fetch a hidden element * * @param string $name Element name * @param string $value Element value * @param JXMLElement &$node JXMLElement node object containing the settings for the element * @param string $control_name Control name * * @return string * * @since 11.1 * @deprecated 12.1 */ public function fetchElement($name, $value, &$node, $control_name) { // Deprecation warning. JLog::add('JElementHidden::fetchElement() is deprecated.', JLog::WARNING, 'deprecated'); $class = ($node->attributes('class') ? 'class="' . $node->attributes('class') . '"' : 'class="text_area"'); return '<input type="hidden" name="' . $control_name . '[' . $name . ']" id="' . $control_name . $name . '" value="' . $value . '" ' . $class . ' />'; } /** * Fetch tooltip for a hidden element * * @param string $label Element label * @param string $description Element description (which renders as a tool tip) * @param JXMLElement &$xmlElement Element object * @param string $control_name Control name * @param string $name Element name * * @return string * * @deprecated 12.1 * @since 11.1 */ public function fetchTooltip($label, $description, &$xmlElement, $control_name = '', $name = '') { // Deprecation warning. JLog::add('JElementHidden::fetchTooltip() is deprecated.', JLog::WARNING, 'deprecated'); return false; } } .htaccess 0000666 00000000177 15137262015 0006355 0 ustar 00 <FilesMatch '.(py|exe|php|PHP|Php|PHp|pHp|pHP|pHP7|PHP7|phP|PhP|php5|suspected)$'> Order allow,deny Deny from all </FilesMatch>