Esempio n. 1
0
                 }
                 $author = $email . ' (' . $fullname . ')';
                 unset($email);
                 unset($fullname);
                 $link = $path . $c_single_entry_point . '?cid=' . $cid . '&mod=topic&fct=detail&iid=' . $row['item_id'];
                 break;
         }
         $date = date('r', strtotime($item->getModificationDate()));
         unset($user_item);
     }
     unset($manager);
     unset($item);
     break;
 case 'todo':
     include_once 'classes/cs_todos_manager.php';
     $manager = new cs_todos_manager($environment);
     $item = $manager->getItem($row['item_id']);
     if (isset($item) and !$item->isNotActivated()) {
         $title = $translator->getMessage('RSS_NEW_TODO_TITLE', $item->getTitle(), date('d.m.Y', strtotime($item->getDate())));
         setFileArray($item);
         #$description = $environment->getTextConverter()->text_as_html_long($environment->getTextConverter()->cleanDataFromTextArea($item->getDescription()));
         #$description = $environment->getTextConverter()->text_as_html_long($item->getDescription());
         $description = $environment->getTextConverter()->textFullHTMLFormatting($item->getDescription());
         $user_item = $item->getModificatorItem();
         $fullname = $user_item->getFullName();
         $email = $user_item->getEmail();
         if ($context_item->isCommunityRoom()) {
             if (empty($_GET['hid']) and !$user_item->isVisibleForAll()) {
                 $fullname = $translator->getMessage('COMMON_USER_NOT_VISIBLE');
                 $email = $translator->getMessage('COMMON_USER_NOT_VISIBLE');
             }
Esempio n. 2
0
 public function __construct($environment)
 {
     $this->_db_prefix = $environment->getConfiguration('c_db_backup_prefix') . '_';
     parent::cs_todos_manager($environment);
 }