Source for file spacer.php
Documentation is available at spacer.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.
* Provides spacer markup to be used in form layouts.
* @package Joomla.Platform
protected $type =
'Spacer';
* Method to get the field input markup for a spacer.
* The spacer does not have accept input.
* @return string The field input markup.
* Method to get the field label markup for a spacer.
* Use the label text or name from the XML element as the spacer or
* Use a hr="true" to automatically generate plain hr markup
* @return string The field label markup.
$class =
!empty($this->class) ?
' class="' .
$this->class .
'"' :
'';
$html[] =
'<span class="spacer">';
$html[] =
'<span class="before"></span>';
$html[] =
'<span' .
$class .
'>';
if ((string)
$this->element['hr'] ==
'true')
$html[] =
'<hr' .
$class .
' />';
// Get the label text from the XML element, defaulting to the element name.
// Build the class for the label.
$class =
!empty($this->description) ?
'hasTooltip' :
'';
$class =
$this->required ==
true ?
$class .
' required' :
$class;
// Add the opening label tag and main attributes attributes.
$label .=
'<label id="' .
$this->id .
'-lbl" class="' .
$class .
'"';
// If a description is specified, use it to build a tooltip.
JHtml::_('bootstrap.tooltip');
// Add the label text and closing tag.
$label .=
'>' .
$text .
'</label>';
$html[] =
'<span class="after"></span>';
* Method to get the field title.
* @return string The field title.
Documentation generated on Tue, 19 Nov 2013 15:14:02 +0100 by phpDocumentor 1.4.3