*
* Functions needed to display the options pages.
*
- * @copyright 1999-2015 The SquirrelMail Project Team
+ * @copyright 1999-2017 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* useful for indicating units, meanings of special values, etc.
* @var string
*/
+//TODO: add trailing_text_small as has been done with 1.4.x
var $trailing_text;
/**
* Text that overrides the "Yes" label for boolean
var $folder_filter='noselect';
/**
- * Constructor function
+ * Constructor (PHP5 style, required in some future version of PHP)
* @param array $raw_option_array
* @param string $name
* @param string $caption
* @param array $possible_values
* @param bool $htmlencoded
*/
- function SquirrelOption
+ function __construct
($raw_option_array, $name, $caption, $type, $refresh_level, $initial_value = '', $possible_values = '', $htmlencoded = false) {
/* Set the basic stuff. */
$this->raw_option_array = $raw_option_array;
}
}
+ /**
+ * Constructor (PHP4 style, kept for compatibility reasons)
+ * @param array $raw_option_array
+ * @param string $name
+ * @param string $caption
+ * @param integer $type
+ * @param integer $refresh_level
+ * @param mixed $initial_value
+ * @param array $possible_values
+ * @param bool $htmlencoded
+ */
+ function SquirrelOption
+ ($raw_option_array, $name, $caption, $type, $refresh_level, $initial_value = '', $possible_values = '', $htmlencoded = false) {
+ self::__construct($raw_option_array, $name, $caption, $type, $refresh_level, $initial_value, $possible_values, $htmlencoded);
+ }
+
/** Convenience function that identifies which types of
widgets are stored as (serialized) array values. */
function is_multiple_valued() {
* @return string html formated output
*/
function createWidget_Info() {
- return sq_htmlspecialchars($this->value);
+ // return sq_htmlspecialchars($this->value);
+ // like COMMENT, allow HTML here
+ return $this->value;
}
/**