Esempio n. 1
0
 function handle(&$params)
 {
     // retrieve the message contents for -job_note_id
     $app = Dataface_Application::getInstance();
     $query = $app->getQuery();
     $auth =& Dataface_AuthenticationTool::getInstance();
     $user =& $auth->getLoggedInUser();
     $note_id = $query['-job_note_id'];
     require_once 'inc/SweteDb.class.php';
     require_once 'inc/SweteJobInbox.class.php';
     $message = SweteJobInbox::getMessageStatic($note_id, $user->val('username'));
     echo nl2br($message->note_content);
 }