apm_package_enabled_p (public)

 apm_package_enabled_p package_key

Defined in packages/acs-tcl/tcl/apm-procs.tcl

Returns 1 if there is an enabled package version corresponding to the package_key and 0 otherwise.

Parameters:
package_key (required)

Partial Call Graph (max 5 caller/called nodes):
%3 Object ::template::CSS Object ::template::CSS (public) apm_package_enabled_p apm_package_enabled_p Object ::template::CSS->apm_package_enabled_p apm_data_model_scripts_find apm_data_model_scripts_find (public) apm_data_model_scripts_find->apm_package_enabled_p apm_load_tests_p apm_load_tests_p (public) apm_load_tests_p->apm_package_enabled_p ds_watch_packages ds_watch_packages (private) ds_watch_packages->apm_package_enabled_p packages/acs-admin/www/install/install-3.tcl packages/acs-admin/ www/install/install-3.tcl packages/acs-admin/www/install/install-3.tcl->apm_package_enabled_p acs::try_cache acs::try_cache (private) apm_package_enabled_p->acs::try_cache db_0or1row db_0or1row (public) apm_package_enabled_p->db_0or1row

Testcases:
No testcase defined.
Source code:
    acs::try_cache ::acs::misc_cache eval -per_request apm_package_enabled-$package_key {
        db_0or1row apm_package_enabled_p {
            select 1 from apm_package_versions
            where package_key = :package_key
            and enabled_p = 't'
        }
    }
Generic XQL file:
packages/acs-tcl/tcl/apm-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/apm-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/apm-procs-oracle.xql

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