preference::get_preference_type_id (public)
preference::get_preference_type_id -preference_type preference_type
Defined in packages/user-preferences/tcl/preference-procs.tcl
Get the preference ID given the short name
- 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.
Source code: # This will eventually be cached return [db_string select_preference_type_id {} -default {}]Generic XQL file: <fullquery name="preference::get_preference_type_id.select_preference_type_id"> <querytext> select preference_type_id from user_preference_types where short_name= :preference_type </querytext> </fullquery>packages/user-preferences/tcl/preference-procs.xql
PostgreSQL XQL file: packages/user-preferences/tcl/preference-procs-postgresql.xql
Oracle XQL file: packages/user-preferences/tcl/preference-procs-oracle.xql