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):
%3 preference::get_user_pref preference::get_user_pref (public) preference::get_preference_type_id preference::get_preference_type_id preference::get_user_pref->preference::get_preference_type_id preference::set_package_default preference::set_package_default (public) preference::set_package_default->preference::get_preference_type_id preference::set_user_pref preference::set_user_pref (public) preference::set_user_pref->preference::get_preference_type_id db_string db_string (public) preference::get_preference_type_id->db_string

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

[ hide source ] | [ make this the default ]
Show another procedure: