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.87 2005/02/04 13:26:34 mast Exp $ + // $Id: module.pmod,v 1.88 2005/02/04 20:14:44 mast 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:349:       LocaleString doc( )    //! Return the documentation for this variable (locale dependant).    //!    //! The default implementation queries the locale object in roxen    //! to get the documentation.    {    return __doc || "";    }    +  void set_doc (LocaleString doc) +  //! Set the (locale dependent) documentation for this variable. +  { +  __doc = doc; +  } +     LocaleString name( )    //! Return the name of this variable (locale dependant).    //!    //! The default implementation queries the locale object in roxen    //! to get the documentation.    {    return __name || LOCALE(326,"unnamed")+" "+_id;    }    -  +  void set_name (LocaleString name) +  //! Set the (locale dependent) name for this variable. +  { +  __name = name; +  } +     LocaleString type_hint( )    //! Return the type hint for this variable.    //! Type hints are generic documentation for this variable type,    //! and is the same for all instances of the type.    {    }       mixed default_value()    //! The default (initial) value for this variable.    {