site_node::get_node_id_from_object_id (public)

 site_node::get_node_id_from_object_id -object_id object_id

Defined in packages/acs-tcl/tcl/site-nodes-procs.tcl

Switches:
-object_id (required)
Returns:
the site node id associated with the given object_id

Partial Call Graph (max 5 caller/called nodes):
%3 apm::convert_type apm::convert_type (public) site_node::get_node_id_from_object_id site_node::get_node_id_from_object_id apm::convert_type->site_node::get_node_id_from_object_id apm_package_ids_from_key_not_cached apm_package_ids_from_key_not_cached (private) apm_package_ids_from_key_not_cached->site_node::get_node_id_from_object_id calendar::attachments_enabled_p calendar::attachments_enabled_p (public) calendar::attachments_enabled_p->site_node::get_node_id_from_object_id forum::attachments_enabled_p forum::attachments_enabled_p (public) forum::attachments_enabled_p->site_node::get_node_id_from_object_id packages/acs-subsite/www/admin/applications/application-delete.tcl packages/acs-subsite/ www/admin/applications/application-delete.tcl packages/acs-subsite/www/admin/applications/application-delete.tcl->site_node::get_node_id_from_object_id ad_log ad_log (public) site_node::get_node_id_from_object_id->ad_log site_node::get_node_id site_node::get_node_id (public) site_node::get_node_id_from_object_id->site_node::get_node_id site_node::get_url_from_object_id site_node::get_url_from_object_id (public) site_node::get_node_id_from_object_id->site_node::get_url_from_object_id

Testcases:
No testcase defined.
Source code:
    set urls [get_url_from_object_id -object_id $object_id]
    if {[llength $urls] == 0} {
        set url ""
    } else {
        if {[llength $urls] > 1} {
            ad_log warning "get_node_id_from_object_id for object $object_id returns [llength $urls] URLs, first one is returned"
        }
        set url [lindex $urls 0]
    }
    if { $url ne "" } {
        return [get_node_id -url $url]
    } else {
        return {}
    }
Generic XQL file:
packages/acs-tcl/tcl/site-nodes-procs.xql

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

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

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