Strict Standards: Declaration of action_plugin_importoldindex::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/importoldindex/action.php on line 8

Strict Standards: Declaration of action_plugin_popularity::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/popularity/action.php on line 57

Strict Standards: Declaration of action_plugin_safefnrecode::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/safefnrecode/action.php on line 66

Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/importoldchangelog/action.php on line 182

Strict Standards: Declaration of Doku_Renderer_metadata::table_open() should be compatible with Doku_Renderer::table_open($maxcols = NULL, $numrows = NULL, $pos = NULL) in /var/www/html/inc/parser/metadata.php on line 24

Strict Standards: Declaration of Doku_Renderer_metadata::table_close() should be compatible with Doku_Renderer::table_close($pos = NULL) in /var/www/html/inc/parser/metadata.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/lib/plugins/importoldindex/action.php:8) in /var/www/html/inc/actions.php on line 180
 cor4:app:objects:cmenu [Cor4 WIki]

CMenu

A menühöz lehet vele hozzáférni.

konstruktor

CMenu()

Létrehozza a menü objektumot.

Metódusok

add

bool add(string name, string caption, string jumpto=””, string enabled=””, string auth=””)

Hozzáad egy új főmenüpontot. Amennyiben name nevű menü elem már létezik, akkor nem adja hozzá az elemet és a visszatérési érték false, különben true.

addto

bool addto(string parent, string name, string caption, string jumpto=””, string enabled=””, string auth=””)

Hozzáad egy új almenüpontot a parent nevű menüponthoz. A parent lehet egy másik almenüpont is. Amennyiben name nevű menü elem már létezik vagy parent nevű elem nem létezik, akkor nem adja hozzá az elemet és a visszatérési érték false, különben true.

clear

void clear()

A teljes menüt törli.

del

bool del(string name)

Törli a megadott menüpontot. Siker esetén true-val tér vissza, ellenkező esetben false-al.

setattribute

bool setattribute(string name, string attrib, string value)

A megadott menüpont bizonyos paramétereit módosíthatjuk vele. Az attrib paraméterben lehet megadni a változtatni kívánt paramétert, amely jelenleg jumpto, shortcut vagy enabled lehet. A visszatérési érték siker esetén true.


cor4/app/objects/cmenu.txt · Last modified: 2021/01/05 11:39 (external edit)