Exemple #1
0
 function execute($caveID, $caves)
 {
     // create View
     $view = new Messages_New_View($_SESSION['player']->language, $_SESSION['player']->template);
     // create Model
     $model = new Messages_New_Model();
     // set count
     $view->setCount($model->getCount());
     return $view->count;
     //array($view->getTitle(), $view->getContent());
 }
Exemple #2
0
 function execute($caveID, $caves)
 {
     global $params;
     // create View
     $view = new Messages_New_View($params->SESSION->player->language, $params->SESSION->player->template);
     // create Model
     $model = new Messages_New_Model();
     // set count
     $view->setCount($model->getCount());
     return array($view->getTitle(), $view->getContent());
 }