/**
  * Constuctor of the class
  *
  * @param User $user
  * @param Project $project
  * @param Docman_Document $item
  *
  * @return void
  */
 function __construct($user, $project, $item)
 {
     $this->user = $user;
     $this->project = $project;
     $docmanItemFactory = new Docman_ItemFactory();
     $this->item = $docmanItemFactory->getItemFromDb($item->getId());
 }
示例#2
0
 function toRow()
 {
     $row = parent::toRow();
     $row['wiki_page'] = $this->getPagename();
     $row['item_type'] = PLUGIN_DOCMAN_ITEM_TYPE_WIKI;
     return $row;
 }
示例#3
0
 function toRow()
 {
     $row = parent::toRow();
     $row['link_url'] = $this->getUrl();
     $row['item_type'] = PLUGIN_DOCMAN_ITEM_TYPE_LINK;
     return $row;
 }
示例#4
0
 function toRow()
 {
     $row = parent::toRow();
     $row['item_type'] = PLUGIN_DOCMAN_ITEM_TYPE_EMPTY;
     return $row;
 }