Exemplo n.º 1
0
 public function run($params = null)
 {
     if ($params !== 'nkorgexample') {
         return false;
     }
     \fpcm\modules\nkorg\example\model\logfile::cleanup();
     return true;
 }
Exemplo n.º 2
0
 public function run($params = null)
 {
     if ($params !== 'nkorgexample') {
         return false;
     }
     $view = new \fpcm\model\view\module(\fpcm\model\abstracts\module::getModuleKeyByFolder(__FILE__), 'ajax', 'logview');
     $view->assign('logfiledata', \fpcm\modules\nkorg\example\model\logfile::getLog());
     $view->render();
 }
Exemplo n.º 3
0
 public function run($params = null)
 {
     if (\fpcm\classes\http::postOnly('btnClearLog') !== null) {
         \fpcm\modules\nkorg\example\model\logfile::cleanup();
     }
     $view = new \fpcm\model\view\module(\fpcm\model\abstracts\module::getModuleKeyByFolder(__FILE__), 'acp', 'main');
     $view->addMessage('FPCM_EXAMPLE_HEADLINE');
     $view->addNoticeMessage('FPCM_EXAMPLE_HEADLINE');
     $view->addErrorMessage('FPCM_EXAMPLE_HEADLINE');
     $view->assign('logfiledata', \fpcm\modules\nkorg\example\model\logfile::getLog());
     $view->render();
 }
 public function run($params = null)
 {
     \fpcm\modules\nkorg\example\model\logfile::logParams($params);
     return $params;
 }