aboutsummaryrefslogtreecommitdiffstats
path: root/php/node.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/node.php')
-rw-r--r--php/node.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/php/node.php b/php/node.php
new file mode 100644
index 0000000..b6c3428
--- /dev/null
+++ b/php/node.php
@@ -0,0 +1,26 @@
+<?php
+require_once "database.php";
+
+ class Current_Directory
+ {
+ public $node_id;
+ /*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
+ {
+ global $database;
+ if(!$database->is_directory($directory_id))
+ {
+ return false;
+ }
+
+ }
+ }
+
+?>