/administrator/components/com_fabrik/elements/eval.php
PHP | 42 lines | 15 code | 6 blank | 21 comment | 1 complexity | 0e75a775352c39718959a856b55193ba MD5 | raw file
- <?php
- /**
- * @package Joomla
- * @subpackage Fabrik
- * @copyright Copyright (C) 2005 Rob Clayburn. All rights reserved.
- * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
- */
- // Check to ensure this file is within the rest of the framework
- defined('JPATH_BASE') or die();
- require_once(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_fabrik'.DS.'helpers'.DS.'element.php');
- /**
- * Renders a SQL element
- *
- * @author rob clayburn
- * @package fabrikar
- * @subpackage Parameter
- * @since 1.5
- */
- class JElementEval extends JElement
- {
- /**
- * Element name
- *
- * @access protected
- * @var string
- */
- var $_name = 'Eval';
- function fetchElement($name, $value, &$node, $control_name)
- {
- $js = "onclick=\"setAllCheckBoxes('details[eval]', this.checked)\"";
- $chk = ($value == '1') ? ' checked="checked"' : '';
- $fullName = ElementHelper::getFullName($this, $control_name, $name);
- return "<input $js type=\"checkbox\" name=\"" . $fullName . "\" value=\"1\" $chk />";
- }
- }
- ?>