From bbd462f80f0b491caf15f0cc7fd8c7ed88e33ba6 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 12 Feb 2021 14:22:20 +0200 Subject: adf --- php/node.php | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/php/node.php b/php/node.php index 062da90..6e00a4b 100644 --- a/php/node.php +++ b/php/node.php @@ -14,25 +14,12 @@ require_once "database.php"; $this->node_id=$node_id; } } - - class Current_Directory extends Node + class Directory_Node extends Node { - /*an array of the dir_ids taken to reach here*/ - public $path; - - function __construct($user_id) - { - $this->dir_id=get_home_id($user_id); - $this->path=[$dir_id]; - } - function change_directory($directory_id):bool + public $node_list; + /*the path in terms of the simulated filesystem*/ + function __construct(string $abstract_path) { - global $database; - if(!$database->is_directory($directory_id)) - { - return false; - } - } } -- cgit v1.2.3