Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1275:    inherit Variable;    protected array _list = ({});    protected mapping _table = ([]);       protected int(0..1) multiselect;       //! Identifier to use to detect presence of    //! support for multiselect mode.    constant multiselect_supported = 1;    +  array(string|array(string)) verify_set(mixed to) +  { +  if (multiselect && stringp(to)) { +  return ({ "Compatibility: " +  "Converted to multi-select.\n", +  ({ to }), +  }); +  } else if (!multiselect && arrayp(to)) { +  return ({ "Compatibility: " +  "Converted to single-select.\n", +  sizeof (to) ? to[0] : default_value(), +  }); +  } +  +  +  return ::verify_set(to); +  } +     string diff( int render )    {    if(!render) {    if (multiselect)    return "(" + map(default_value(), _title) * ", " + ")";    return "("+_title( default_value() )+")";    }    }       void set_choice_list( array to )