apm::package_version::attributes::get (public)

 apm::package_version::attributes::get -version_id version_id \
    -array array

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

Set an array with the attribute values of a certain package version.

Switches:
-version_id (required)
The id of the package version to return attribute values for
-array (required)
The name of an array in the callers environment in which the attribute values will be set (with attribute names as keys and attribute values as values).
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 apm::package_version::attributes::generate_xml apm::package_version::attributes::generate_xml (private) apm::package_version::attributes::get apm::package_version::attributes::get apm::package_version::attributes::generate_xml->apm::package_version::attributes::get apm::package_version::attributes::get_instance_name apm::package_version::attributes::get_instance_name (private) apm::package_version::attributes::get_instance_name->apm::package_version::attributes::get packages/acs-admin/www/apm/version-edit.tcl packages/acs-admin/ www/apm/version-edit.tcl packages/acs-admin/www/apm/version-edit.tcl->apm::package_version::attributes::get packages/acs-admin/www/apm/version-view.tcl packages/acs-admin/ www/apm/version-view.tcl packages/acs-admin/www/apm/version-view.tcl->apm::package_version::attributes::get db_foreach db_foreach (public) apm::package_version::attributes::get->db_foreach

Testcases:
No testcase defined.
Source code:
    upvar $array attributes

    db_foreach select_attribute_values {
        select attribute_name,
        attribute_value
        from apm_package_version_attr
        where version_id = :version_id
    } {
        set attributes($attribute_name$attribute_value
    }
Generic XQL file:
packages/acs-tcl/tcl/apm-install-procs.xql

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

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

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