aboutsummaryrefslogtreecommitdiffstats
path: root/php/node.php
blob: b6c34281c4a4ba929ce3b45ec87dc20f3bc378c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
			}
			
		}
	}

?>