xowiki::Mode method get (public)

 <instance of xowiki::Mode[i]> get

Defined in

Get the current mode, which might be set by the user or which might be obtained from the default method.

Testcases:
No testcase defined.
Source code:
set default [:default]
set mode_name [:mode_name]
if {![ns_conn isconnected]} {
  return $default
}
if {[ad_get_client_property -cache_only t xowiki $mode_name] eq ""} {
  ad_set_client_property -persistent f xowiki $mode_name $default
}
return [ad_get_client_property -cache_only t xowiki $mode_name]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: