Source for file StandardWidgets.php
Documentation is available at StandardWidgets.php
* @copyright Copyright (c) 2006,2007 Mirchev Ideas Ltd. All rights reserved.
* Use it with input type="text" and with textarea
* @copyright Copyright (c) 2006,2007 Mirchev Ideas Ltd. All rights reserved.
* Returns the text widget contents to be displayed
* Standard checkbox widget
* Use it with input type="checkbox"
* @copyright Copyright (c) 2006,2007 Mirchev Ideas Ltd. All rights reserved.
* Returns the checkbox widget contents to be displayed
$checked =
$this->getValue() ?
' checked="checked"' :
'';
$widget =
'<input type="checkbox" name="' .
$this->_fieldName .
'"' .
$checked .
$id .
'/>';
* Standard radio buttons widget
* Use it with input type="radio"
* This class supports a group of radio buttons
* @copyright Copyright (c) 2006,2007 Mirchev Ideas Ltd. All rights reserved.
* Returns the widget contents to be displayed
$checked =
($value ==
$key) ?
' checked="checked"' :
'';
$widget .=
'<label><input type="radio" name="' .
$this->_fieldName .
'" value="' .
$key .
'"' .
$checked .
'/>' .
miI18N::htmlEscape($option) .
'</label>';
* @copyright Copyright (c) 2006,2007 Mirchev Ideas Ltd. All rights reserved.
* Returns the widget contents to be displayed
$html =
'<select name="' .
$this->_fieldName .
'"' .
$id .
$class .
'>';
foreach ($this->_options as $key =>
$option)
Documentation generated on Thu, 08 May 2008 16:57:39 +0300 by phpDocumentor 1.4.1