Source for file Checkbox.php
Documentation is available at Checkbox.php
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at
* http://formagic.weasle.de/licence.txt
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to licence@weasle.de so we can send you a copy immediately.
* @author Florian Sonnenburg
* @copyright Copyright (c) 2007 Florian Sonnenburg
* @license http://formagic.weasle.de/licence.txt New BSD License
* @revision $Revision: 11 $
* @author Florian Sonnenburg
* @copyright Copyright (c) 2007 Florian Sonnenburg
* @version $Id: Checkbox.php 11 2007-08-12 20:02:57Z meweasle $
* Returns HTML representation of checkbox item
$str = $checked ? "[X]" : "[_]";
$str .= '<input type="hidden" name="' . $this->name . '" value="' . $checked . '" />';
$str = '<input type="hidden" name="' . $this->name . '" value="0" />';
|