oacs_dav::conn (public)

 oacs_dav::conn [ args... ]

Defined in packages/oacs-dav/tcl/oacs-dav-procs.tcl

shared data for WebDAV requests

Partial Call Graph (max 5 caller/called nodes):
%3 test_oacs_dav_mkcol oacs_dav_mkcol (test oacs-dav) oacs_dav::conn oacs_dav::conn test_oacs_dav_mkcol->oacs_dav::conn test_oacs_dav_put oacs_dav_put (test oacs-dav) test_oacs_dav_put->oacs_dav::conn ad_conn ad_conn (public) oacs_dav::conn->ad_conn fs::impl::fs_object::mkcol fs::impl::fs_object::mkcol (private) fs::impl::fs_object::mkcol->oacs_dav::conn fs::impl::fs_object::put fs::impl::fs_object::put (private) fs::impl::fs_object::put->oacs_dav::conn oacs_dav::authorize oacs_dav::authorize (public) oacs_dav::authorize->oacs_dav::conn oacs_dav::conn_setup oacs_dav::conn_setup (public) oacs_dav::conn_setup->oacs_dav::conn oacs_dav::handle_request oacs_dav::handle_request (public) oacs_dav::handle_request->oacs_dav::conn

Testcases:
oacs_dav_put, oacs_dav_mkcol
Source code:
    global tdav_conn
    set flag [lindex $args 0]
    if { [string index $flag 0] ne "-" } {
        set var $flag
        set flag "-get"
    } else {
        set var [lindex $args 1]
    }
    switch -- $flag {
        -set {
            set value [lindex $args 2]
            set tdav_conn($var$value
            return $value
        }
        -get {
            if { [info exists tdav_conn($var)] } {
                return $tdav_conn($var)
            } else {
                return [ad_conn $var]
            }
        }
    }
Generic XQL file:
packages/oacs-dav/tcl/oacs-dav-procs.xql

PostgreSQL XQL file:
packages/oacs-dav/tcl/oacs-dav-procs-postgresql.xql

Oracle XQL file:
packages/oacs-dav/tcl/oacs-dav-procs-oracle.xql

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