Source for file note.php
Documentation is available at note.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 one line text field.
* @package Joomla.Platform
* @link http://www.w3.org/TR/html-markup/input.text.html#input.text
protected $type =
'Note';
* Method to get the field label markup.
* @return string The field label markup.
if (empty($this->element['label']) &&
empty($this->element['description']))
$heading =
$this->element['heading'] ? (string)
$this->element['heading'] :
'h4';
$description = (string)
$this->element['description'];
$class =
!empty($this->class) ?
' class="' .
$this->class .
'"' :
'';
$close = (string)
$this->element['close'];
$close =
$close ==
'true' ?
'alert' :
$close;
$html[] =
'<button type="button" class="close" data-dismiss="' .
$close .
'">×</button>';
$html[] =
!empty($title) ?
'<' .
$heading .
'>' .
JText::_($title) .
'</' .
$heading .
'>' :
'';
$html[] =
!empty($description) ?
JText::_($description) :
'';
return '</div><div ' .
$class .
'>' .
implode('', $html);
* Method to get the field input markup.
* @return string The field input markup.
Documentation generated on Tue, 19 Nov 2013 15:09:36 +0100 by phpDocumentor 1.4.3