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

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.66 2001/09/12 23:37:42 nilsson Exp $ + // $Id: module.pmod,v 1.67 2001/09/21 09:53:01 per Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1214:    return ({ " none" }) + sort(DBManager.list( config() ));    }       static void create(string default_value, void|int flags,    void|LocaleString std_name, void|LocaleString std_doc)    {    ::create( default_value, ({}), flags, std_name, std_doc );    }   }    + class AuthMethodChoice + { +  inherit StringChoice; +  constant type = "AuthMethodChoice";    -  +  static Configuration config; +  +  array get_choice_list( ) +  { +  return ({ " all" }) + sort( config->auth_modules()->name ); +  } +  +  static void create( string default_value, int flags, +  string std_name, string std_doc, +  Configuration c ) +  { +  config = c; +  ::create( default_value, ({}), flags, std_name, std_doc ); +  } + } +  + class UserDBChoice + { +  inherit StringChoice; +  constant type = "UserDBChoice"; +  +  static Configuration config; +  +  array get_choice_list( ) +  { +  return ({ " all" }) + sort( config->user_databases()->name ); +  } +  +  static void create( string default_value, int flags, +  string std_name, string std_doc, +  Configuration c ) +  { +  config = c; +  ::create( default_value, ({}), flags, std_name, std_doc ); +  } + } +  +    // =====================================================================   // List baseclass   // =====================================================================   class List   //! Many of one type types   {    inherit Variable;    constant type="List";    int width = 40;