0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: hidden.php.tar
home/academiac/www/libraries/joomla/html/parameter/element/hidden.php 0000644 00000004056 15137265056 0022004 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; } } home/academiac/www/libraries/joomla/form/fields/hidden.php 0000644 00000002567 15137514074 0017642 0 ustar 00 <?php /** * @package Joomla.Platform * @subpackage Form * * @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; /** * Form Field class for the Joomla Platform. * Provides a hidden field * * @package Joomla.Platform * @subpackage Form * @link http://www.w3.org/TR/html-markup/input.hidden.html#input.hidden * @since 11.1 */ class JFormFieldHidden extends JFormField { /** * The form field type. * * @var string * @since 11.1 */ protected $type = 'Hidden'; /** * Method to get the field input markup. * * @return string The field input markup. * * @since 11.1 */ protected function getInput() { // Initialize some field attributes. $class = $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : ''; $disabled = ((string) $this->element['disabled'] == 'true') ? ' disabled="disabled"' : ''; // Initialize JavaScript field attributes. $onchange = $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : ''; return '<input type="hidden" name="' . $this->name . '" id="' . $this->id . '"' . ' value="' . htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '"' . $class . $disabled . $onchange . ' />'; } }
©
2018.