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

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: