private function getTextBlockData($block_id, $page_id, $section_id)
 {
     PHPWS_Core::initModClass('pagesmith', 'PS_Text.php');
     $content = null;
     if (!empty($block_id)) {
         $ps_block = new PS_Text($block_id);
         $content = $ps_block->getContent(true, false);
         $this->setUndoSession($page_id, $block_id, $content);
     } elseif (isset($_SESSION['page_undo'][$page_id][$section_id])) {
         echo end($_SESSION['page_undo'][$page_id][$section_id]);
     }
     echo $content;
 }