/redirect/code/trunk/administrator/components/com_redirect/libraries/jxtended/form/fields/hidden.php
https://bitbucket.org/eddieajau/the-art-of-joomla-archive · PHP · 42 lines · 12 code · 5 blank · 25 comment · 0 complexity · ed220339c942c52010021a92915822c5 MD5 · raw file
- <?php
- /**
- * @version $Id: hidden.php 390 2010-11-05 11:35:33Z eddieajau $
- * @package JXtended.Libraries
- * @subpackage Form
- * @copyright Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License
- * @link http://www.theartofjoomla.com
- */
- defined('JPATH_BASE') or die('Restricted Access');
- juimport('jxtended.form.formfield');
- /**
- * Form Field class for JXtended Libraries.
- *
- * @package JXtended.Libraries
- * @subpackage Form
- * @since 1.1
- */
- class JFormFieldHidden extends JFormField
- {
- /**
- * The field type.
- *
- * @var string
- */
- protected $type = 'Hidden';
- /**
- * Method to get the field input.
- *
- * @return string The field input.
- */
- protected function _getInput()
- {
- $class = $this->_element->attributes('class') ? 'class="'.$this->_element->attributes('class').'"' : '';
- return '<input type="hidden" name="'.$this->inputName.'" value="'.htmlspecialchars($this->value).'" '.$class.' />';
- }
- }