*
* @version $Id$
* @package squirrelmail
+ * @subpackage prefs
*/
/**********************************************/
define('SMOPT_SAVE_NOOP', 'save_option_noop');
/**
- * SquirrelOption: An option for Squirrelmail.
+ * SquirrelOption: An option for SquirrelMail.
*
* @package squirrelmail
* @subpackage prefs
*/
var $type;
/**
- * Indicates if a link should be shown to refresh part
+ * Indicates if a link should be shown to refresh part
* or all of the window
*
* See SMOPT_REFRESH_* defines
*/
var $size;
/**
- * Text that follows a text input or
+ * Text that follows a text input or
* select list input on the preferences page
- *
+ *
* useful for indicating units, meanings of special values, etc.
* @var string
*/
*/
var $script;
/**
- * script (usually Javascript) that will be placed after (outside of)
+ * script (usually Javascript) that will be placed after (outside of)
* the INPUT tag
* @var string
*/
*/
var $new_value;
/**
- * associative array, where each key is an actual input value
+ * associative array, where each key is an actual input value
* and the corresponding value is what is displayed to the user
* for that list item in the drop-down list
* @var array
var $possible_values;
/**
* disables html sanitizing.
- *
- * WARNING - don't use it, if user input is possible in option
- * or use own sanitizing functions. Currently works only with
+ *
+ * WARNING - don't use it, if user input is possible in option
+ * or use own sanitizing functions. Currently works only with
* SMOPT_TYPE_STRLIST.
* @var bool
*/
/**
* Set the script for this option.
- * @param string $script
+ * @param string $script
*/
function setScript($script) {
$this->script = $script;
* Creates fields on option pages according to option type
*
* Function that calls other createWidget* functions.
- * @return string html formated option field
+ * @return string html formated option field
*/
function createHTMLWidget() {
global $color;
foreach ($grpopts as $optset) {
/* Create a new option with all values given. */
$next_option = new SquirrelOption(
- $optset['name'],
- $optset['caption'],
- $optset['type'],
- (isset($optset['refresh']) ? $optset['refresh'] : SMOPT_REFRESH_NONE),
- (isset($optset['initial_value']) ? $optset['initial_value'] : ''),
- (isset($optset['posvals']) ? $optset['posvals'] : ''),
- (isset($optset['htmlencoded']) ? $optset['htmlencoded'] : false)
- );
+ $optset['name'],
+ $optset['caption'],
+ $optset['type'],
+ (isset($optset['refresh']) ? $optset['refresh'] : SMOPT_REFRESH_NONE),
+ (isset($optset['initial_value']) ? $optset['initial_value'] : ''),
+ (isset($optset['posvals']) ? $optset['posvals'] : ''),
+ (isset($optset['htmlencoded']) ? $optset['htmlencoded'] : false)
+ );
/* If provided, set the size for this option. */
if (isset($optset['size'])) {