summaryrefslogtreecommitdiff
path: root/www/functions/class_files.php
blob: 716d4c254155ce38d70ad1b9f2941b796c14c4d6 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php

class file {

	public $file; 

	function __construct(){
		$f = collect_content($GLOBALS["db"], $_GET["name"], $_GET["folder"]); 
		$this->file=$f;
	}
	function initFile($val){
		$this->file=$val;
	}
	function getDim(){
		return count($this->file);
	}
	function getParent($val){
		$ar = $this->file;
		return $ar[$val][1];
	}
	function getOwner($val){
		$ar = $this->file;
		return $ar[$val][2];
	}
	function getName($val){
		$ar = $this->file;
		return $ar[$val][3];
	}
	function getFolder($val){
		$ar = $this->file;
		return $ar[$val][4];
	}
	function getMime($val){
		$ar = $this->file;
		return $ar[$val][5];
	}
	function getSize($val){
		$ar = $this->file;
		return $ar[$val][6];
	}
	function getHash($val){
		$ar = $this->file;
		return $ar[$val][7];
	}
	function getDownLink($val){
		$ar = $this->file;
		return $ar[$val][8];
	}
}