diff options
Diffstat (limited to 'www/functions/class_files.php')
| -rw-r--r-- | www/functions/class_files.php | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/www/functions/class_files.php b/www/functions/class_files.php new file mode 100644 index 0000000..716d4c2 --- /dev/null +++ b/www/functions/class_files.php @@ -0,0 +1,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]; + } +} |
