diff options
Diffstat (limited to 'php')
-rw-r--r-- | php/node.php | 21 |
1 files 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; - } - } } |