• Publicity: Public Only All

xowiki-mode-procs.tcl

XoWiki - Mode procs

This file defines the following Objects and Classes: ::xowiki::Mode[i], ::xowiki::mode::admin[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::mode::admin[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::mode::admin[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::mode::admin[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::mode::admin[i], ::xowiki::mode::admin[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::Mode[i], ::xowiki::mode::admin[i], ::xowiki::mode::admin[i], ::xowiki::Mode[i]

Location:
packages/xowiki/tcl/xowiki-mode-procs.tcl
Created:
2016-03-22
Author:
Gustaf Neumann
CVS Identification:
$Id: xowiki-mode-procs.tcl,v 1.7 2024/10/23 12:14:49 gustafn Exp $

Procedures in this file

Detailed information

Class ::xowiki::Mode (public)

 ::nx::Class ::xowiki::Mode[i]

Mode handler to set for the current session some application specific mode (like e.g. admin-mode, developer-mode, student-mode, training-mode, ...) Interface: - method get: obtain the current value (maybe default) - method set: force the mode to the provided value - method toggle: toggle current value

Testcases:
No testcase defined.

Object ::xowiki::mode::admin (public)

 ::xowiki::Mode ::xowiki::mode::admin[i]

Sample admin mode handler object to toggle "admin" mode on and off.

Testcases:
No testcase defined.

xowiki::Mode method get (public)

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

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

Testcases:
No testcase defined.

xowiki::Mode method set (public)

 <instance of xowiki::Mode[i]> set value

Set the mode to the specified value

Parameters:
value (required, boolean)

Testcases:
No testcase defined.

xowiki::Mode method toggle (public)

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

Switch state of the toggle

Testcases:
No testcase defined.

xowiki::mode::admin proc default (public)

 xowiki::mode::admin[i] default

Admins are per default in admin-mode

Testcases:
No testcase defined.
[ show source ]