/** * @param ilCloudFileNode $node * * @return string */ static function getLinkToFolder(ilCloudFileNode $node) { return "#/open_folder?id_parent=" . $node->getParentId() . "¤t_id=" . $node->getId() . "¤t_path=" . $node->getPath(); }
/** * @param string $path * @param bool $is_dir * @return ilCloudFileNode */ protected function createNode($path = "/", $id, $is_dir = false) { $node = new ilCloudFileNode(ilCloudUtil::normalizePath($path), $id); $this->item_list[$node->getPath()] = $node; $this->id_to_path_map[$node->getId()] = $node->getPath(); $node->setIsDir($is_dir); return $node; }