File Manager

Current Directory: /home/astoriaah/www/old15/administrator/components/com_sh404sef/models/fields
Viewing File: /home/astoriaah/www/old15/administrator/components/com_sh404sef/models/fields/shlegend.php
<?php /** * sh404SEF - SEO extension for Joomla! * * @author Yannick Gaultier * @copyright (c) Yannick Gaultier 2014 * @package sh404SEF * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @version 4.4.4.1791 * @date 2014-07-01 */ defined('JPATH_PLATFORM') or die; JFormHelper::loadFieldClass( 'text'); /** * Form Field class for the Joomla Platform. * Supports a generic list of options. * * @package Joomla.Platform * @subpackage Form */ class JFormFieldShlegend extends JFormField { /** * The form field type. * * @var string * @since 11.1 */ protected $type = 'shlegend'; /** * Method to get certain otherwise inaccessible properties from the form field object. * * @param string $name The property name for which to the the value. * * @return mixed The property value or null. * */ public function __get($name) { switch ($name) { case 'element': return $this->$name; break; } $value = parent::__get( $name); return $value; } public function getInput() { return ''; } public function getLabel() { return '<legend>' . JText::_($this->element['label']) . '</legend>'; } }