+
+ /* Set the default save function. */
+ if (($type != SMOPT_TYPE_HIDDEN) && ($type != SMOPT_TYPE_COMMENT)) {
+ $this->save_function = SMOPT_SAVE_DEFAULT;
+ } else {
+ $this->save_function = SMOPT_SAVE_NOOP;
+ }
+ }
+
+ /* Set the value for this option. */
+ function setValue($value) {
+ $this->value = $value;
+ }
+
+ /* Set the new value for this option. */
+ function setNewValue($new_value) {
+ $this->new_value = $new_value;
+ }
+
+ /* Set the size for this option. */
+ function setSize($size) {
+ $this->size = $size;
+ }
+
+ /* Set the comment for this option. */
+ function setComment($comment) {
+ $this->comment = $comment;
+ }
+
+ /* Set the script for this option. */
+ function setScript($script) {
+ $this->script = $script;
+ }
+
+ /* Set the "post script" for this option. */
+ function setPostScript($post_script) {
+ $this->post_script = $post_script;
+ }
+
+ /* Set the save function for this option. */
+ function setSaveFunction($save_function) {
+ $this->save_function = $save_function;