Exemple #1
0
 /**
  * @brief Display the add chat form
  */
 function ajaxAdd()
 {
     $view = $this->tpl();
     $cd = new \Modl\ContactDAO();
     $chats = Cache::c('chats');
     if (!isset($chats)) {
         $chats = array();
     }
     $view->assign('chats', array_keys($chats));
     $view->assign('top', $cd->getTop(15));
     $view->assign('presencestxt', getPresencesTxt());
     Dialog::fill($view->draw('_chats_add', true), true);
 }
Exemple #2
0
 function prepareEmpty()
 {
     $view = $this->tpl();
     $cd = new \Modl\ContactDAO();
     $view->assign('presencestxt', getPresencesTxt());
     $view->assign('top', $cd->getTop(8));
     return $view->draw('_chat_empty', true);
 }
Exemple #3
0
 /**
  * @brief Display the add chat form
  */
 function ajaxAdd()
 {
     $view = $this->tpl();
     $cd = new \Modl\ContactDAO();
     $view->assign('top', $cd->getTop(10));
     $view->assign('presencestxt', getPresencesTxt());
     Dialog::fill($view->draw('_chats_add', true), true);
 }