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

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:onclosehandler [Cor4 WIki]

This is an old revision of the document!


* OnCloseHandler *

Ez a handler a program bezárásakor kerül meghívásra. A handler meghívása előtt az OperationData['canclose'] változó true értéket kap, ha ezt az értéket false-ra változtatjuk, akkor ezzel megakadályozzuk a program bezárását! Tehát a következő egyszerű handlerrel feltehetünk egy kérdést a felhasználónak, hogy biztosan be szeretné-e zárni az alkalmazást:

<?php
 
<canclose> = Confirm('Biztosan be szeretné zárni a programot?');
 
?>

Csak a SetSystemValue függvénnyel adható meg, amit célszerű már az appconfig.inc.php-ban meghívni.


cor4/app/onclosehandler.1254431879.txt.gz · Last modified: 2021/01/05 11:41 (external edit)