Source for file button.php
Documentation is available at button.php
* @package FrameworkOnFramework
* @copyright Copyright (C) 2010 - 2012 Akeeba Ltd. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
// Protect from unauthorized access
* Form Field class for the FOF framework
* Supports a button input.
* @package FrameworkOnFramework
* 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)
return parent::__get($name);
* Get the rendering of this field type for static display, e.g. in a single
* item view (typically a "read" task).
* @return string The field HTML
$class =
$this->element['class'] ? (string)
$this->element['class'] :
'';
$icon =
$this->element['icon'] ? (string)
$this->element['icon'] :
'';
$onclick =
$this->element['onclick'] ?
'onclick="' . (string)
$this->element['onclick'] .
'"' :
'';
$icon =
'<span class="icon ' .
$icon .
'"></span>';
return '<button id="' .
$this->id .
'" class="btn ' .
$class .
'" ' .
* Method to get the field title.
* @return string The field title.
Documentation generated on Tue, 19 Nov 2013 14:54:47 +0100 by phpDocumentor 1.4.3