subsite::get (public)

 subsite::get [ -subsite_id subsite_id ] [ -array array ]

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

Get information about a subsite.

Switches:
-subsite_id (optional)
The id of the subsite for which info is requested. If no id is provided, then the id of the closest ancestor subsite will be used.
-array (optional)
The name of an array in which information will be returned.
Returns:
dict with subsite attributed
Author:
Frank Nikolajsen <frank@warpspace.com>
Created:
2003-03-08

Partial Call Graph (max 5 caller/called nodes):
%3 test_subsite_api subsite_api (test acs-subsite) subsite::get subsite::get test_subsite_api->subsite::get ad_conn ad_conn (public) subsite::get->ad_conn site_node::get_from_object_id site_node::get_from_object_id (public) subsite::get->site_node::get_from_object_id packages/acs-subsite/www/members/index.tcl packages/acs-subsite/ www/members/index.tcl packages/acs-subsite/www/members/index.tcl->subsite::get subsite::default::create_app_group subsite::default::create_app_group (public) subsite::default::create_app_group->subsite::get subsite::get_element subsite::get_element (public) subsite::get_element->subsite::get

Testcases:
subsite_api
Source code:
    if { $subsite_id eq "" } {
        set subsite_id [ad_conn subsite_id]
    }

    set info [site_node::get_from_object_id -object_id $subsite_id]
    if {[info exists array]} {
        upvar $array subsite_info
        array unset subsite_info
        array set subsite_info $info
    }
    return $info
XQL Not present:
Generic
PostgreSQL XQL file:
packages/acs-subsite/tcl/subsite-procs-postgresql.xql

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

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