/content/code/trunk/administrator/components/com_artofcontent/libraries/jxtended/form/fields/password.php
PHP | 44 lines | 14 code | 5 blank | 25 comment | 1 complexity | 960daba9b7c58d1c32545a8094f14c0c MD5 | raw file
- <?php
- /**
- * @version $Id: password.php 484 2010-12-20 23:40:27Z 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;
- juimport('jxtended.form.formfield');
- /**
- * Form Field class for JXtended Libraries.
- *
- * @package JXtended.Libraries
- * @subpackage Form
- * @since 1.1
- */
- class JFormFieldPassword extends JFormField
- {
- /**
- * The field type.
- *
- * @var string
- */
- protected $type = 'Password';
- /**
- * Method to get the field input.
- *
- * @return string The field input.
- */
- protected function _getInput()
- {
- $size = $this->_element->attributes('size') ? 'size="'.$this->_element->attributes('size').'"' : '';
- $class = $this->_element->attributes('class') ? 'class="'.$this->_element->attributes('class').'"' : 'class="text_area"';
- $auto = $this->_element->attributes('autocomplete') == 'off' ? 'autocomplete="off"' : '';
- return '<input type="password" name="'.$this->inputName.'" id="'.$this->inputId.'" value="'.htmlspecialchars($this->value).'" '.$auto.' '.$class.' '.$size.' />';
- }
- }