xowiki::Mode method get (public)

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

Defined in packages/xowiki/tcl/xowiki-mode-procs.tcl

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

Partial Call Graph (max 5 caller/called nodes):
%3 ad_get_client_property ad_get_client_property (public) ad_set_client_property ad_set_client_property (public) xowiki::Mode instproc get xowiki::Mode instproc get xowiki::Mode instproc get->ad_get_client_property xowiki::Mode instproc get->ad_set_client_property

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: