From: <pdo...@us...> - 2008-05-02 21:29:02
|
Revision: 13080 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=13080&view=rev Author: pdontthink Date: 2008-05-02 14:28:59 -0700 (Fri, 02 May 2008) Log Message: ----------- Include original configuration array in Option object; allows custom save handlers to add their own parameters and access them at save time Modified Paths: -------------- trunk/squirrelmail/functions/options.php Modified: trunk/squirrelmail/functions/options.php =================================================================== --- trunk/squirrelmail/functions/options.php 2008-05-02 21:14:29 UTC (rev 13079) +++ trunk/squirrelmail/functions/options.php 2008-05-02 21:28:59 UTC (rev 13080) @@ -61,6 +61,11 @@ */ class SquirrelOption { /** + * The original option configuration array + * @var array + */ + var $raw_option_array; + /** * The name of this setting * @var string */ @@ -184,6 +189,7 @@ /** * Constructor function + * @param array $raw_option_array * @param string $name * @param string $caption * @param integer $type @@ -193,8 +199,9 @@ * @param bool $htmlencoded */ function SquirrelOption - ($name, $caption, $type, $refresh_level, $initial_value = '', $possible_values = '', $htmlencoded = false) { + ($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; $this->name = $name; $this->caption = $caption; $this->type = $type; @@ -886,6 +893,7 @@ foreach ($grpopts as $optset) { /* Create a new option with all values given. */ $next_option = new SquirrelOption( + $optset, $optset['name'], $optset['caption'], $optset['type'], This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |