aboutsummaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-12 14:22:20 +0200
committeradam <adam@>2021-02-12 14:22:20 +0200
commitbbd462f80f0b491caf15f0cc7fd8c7ed88e33ba6 (patch)
tree584d2cb56bfd89552a01328a5af8457142e08cd5 /php
parent76970dca67894917bdbc4213f4c5df60d0c8dec3 (diff)
downloadfileup-bbd462f80f0b491caf15f0cc7fd8c7ed88e33ba6.tar.gz
adf
Diffstat (limited to 'php')
-rw-r--r--php/node.php21
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;
- }
-
}
}