/** * 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()); }
function toRow() { $row = parent::toRow(); $row['wiki_page'] = $this->getPagename(); $row['item_type'] = PLUGIN_DOCMAN_ITEM_TYPE_WIKI; return $row; }
function toRow() { $row = parent::toRow(); $row['link_url'] = $this->getUrl(); $row['item_type'] = PLUGIN_DOCMAN_ITEM_TYPE_LINK; return $row; }
function toRow() { $row = parent::toRow(); $row['item_type'] = PLUGIN_DOCMAN_ITEM_TYPE_EMPTY; return $row; }