示例#1
0
文件: rss.php 项目: a2call/commsy
         } else {
             $title = $translator->getMessage('RSS_NEW_PERSON_TITLE', $fullname);
             $description = $translator->getMessage('RSS_CHANGE_PERSON_DESCRIPTION', $fullname);
         }
         $date = date('r', strtotime($item->getModificationDate()));
         $author = $email . ' (' . $fullname . ')';
         unset($email);
         unset($fullname);
         $link = $path . $c_single_entry_point . '?cid=' . $cid . '&mod=user&fct=detail&iid=' . $row['item_id'];
     }
     unset($manager);
     unset($item);
     break;
 case 'annotation':
     include_once 'classes/cs_annotations_manager.php';
     $manager = new cs_annotations_manager($environment);
     $item = $manager->getItem($row['item_id']);
     if (isset($item) and !$item->isNotActivated()) {
         $linked_item = $item->getLinkedItem();
         if (isset($linked_item)) {
             $title = $translator->getMessage('RSS_NEW_ANNOTATION_TITLE', $item->getTitle(), $linked_item->getTitle());
             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();
             if (isset($user_item)) {
                 $fullname = $user_item->getFullName();
                 $email = $user_item->getEmail();
             } else {
                 $fullname = '';
 public function __construct($environment)
 {
     $this->_db_prefix = $environment->getConfiguration('c_db_backup_prefix') . '_';
     parent::cs_annotations_manager($environment);
 }