Example #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);
 }
Example #2
0
File: Chat.php Project: Trim/movim
 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);
 }
Example #3
0
File: Chats.php Project: Nyco/movim
 /**
  * @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);
 }