Source for file url.php
Documentation is available at url.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* Form Field class for the Joomla Platform.
* Supports a URL text field
* @package Joomla.Platform
* @link http://www.w3.org/TR/html-markup/input.url.html#input.url
* @see JFormRuleUrl for validation of full urls
* Method to get the field input markup.
* @return string The field input markup.
// Translate placeholder text
// Initialize some field attributes.
$size =
!empty($this->size) ?
' size="' .
$this->size .
'"' :
'';
$class =
!empty($this->class) ?
' class="' .
$this->class .
'"' :
'';
$readonly =
$this->readonly ?
' readonly' :
'';
$disabled =
$this->disabled ?
' disabled' :
'';
$required =
$this->required ?
' required aria-required="true"' :
'';
$hint =
$hint ?
' placeholder="' .
$hint .
'"' :
'';
$autocomplete =
$autocomplete ==
' autocomplete="on"' ?
'' :
$autocomplete;
$autofocus =
$this->autofocus ?
' autofocus' :
'';
$spellcheck =
$this->spellcheck ?
'' :
' spellcheck="false"';
// Initialize JavaScript field attributes.
$onchange =
!empty($this->onchange) ?
' onchange="' .
$this->onchange .
'"' :
'';
// Including fallback code for HTML5 non supported browsers.
JHtml::_('script', 'system/html5fallback.js', false, true);
return '<input type="url" name="' .
$this->name .
'"' .
$class .
' id="' .
$this->id .
'" value="'
.
$hint .
$autocomplete .
$autofocus .
$spellcheck .
$onchange .
$maxLength .
$required .
' />';
Documentation generated on Tue, 19 Nov 2013 15:16:17 +0100 by phpDocumentor 1.4.3