- Publicity: Public Only All
preference-types-procs.tcl
User Preferences Types
- Location:
- packages/user-preferences/tcl/preference-types-procs.tcl
- Created:
- 2002-05-24
- Author:
- Ben Adida
- CVS Identification:
$Id: preference-types-procs.tcl,v 1.2 2004/02/25 17:27:29 jeffd Exp $
Procedures in this file
- preference::type::delete (public)
- preference::type::new (public)
Detailed information
preference::type::delete (public)
preference::type::delete -preference_type preference_type
This deletes a preference type. This is not yet implemented.
- Switches:
- -preference_type
(required)- Corresponds to the short_name parameter to preference::type::new
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
preference::type::new (public)
preference::type::new [ -preference_type_id preference_type_id ] \ -package_key package_key -short_name short_name \ -pretty_name pretty_name [ -datatype datatype ] \ [ -options options ] [ -default_value default_value ]
Create a new preference type. The preference can be set at four different levels. See get_user_pref for more details.
- Switches:
- -preference_type_id
(optional)- -package_key
(required)- -short_name
(required)- This is the name that will be used to set or retrieve the preference using set_user_pref or get_user_pref.
- -pretty_name
(required)- -datatype
(defaults to"text"
) (optional)- -options
(optional)- -default_value
(optional)- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Content File Source
ad_library { User Preferences Types @creation-date 2002-05-24 @author Ben Adida <ben@openforce.biz> @cvs-id $Id: preference-types-procs.tcl,v 1.2 2004/02/25 17:27:29 jeffd Exp $ } namespace eval preference::type { d_proc -public new { {-preference_type_id ""} {-package_key:required} {-short_name:required} {-pretty_name:required} {-datatype "text"} {-options ""} {-default_value ""} } { Create a new preference type. The preference can be set at four different levels. See get_user_pref for more details. @param short_name This is the name that will be used to set or retrieve the preference using set_user_pref or get_user_pref. @see preference::set_user_pref @see preference::get_user_pref @see preference::set_package_default } { # Set up the vars set extra_vars [ns_set create] oacs_util::vars_to_ns_set -ns_set $extra_vars -var_list {preference_type_id package_key short_name pretty_name datatype options default_value} # Instantiate the pref set preference_type_id [package_instantiate_object -extra_vars $extra_vars user_pref_type] return $preference_type_id } d_proc -public delete { {-preference_type:required} } { This deletes a preference type. This is not yet implemented. @param preference_type Corresponds to the short_name parameter to preference::type::new } { # FIXME: implement } }