Initial commit

Working directory listing. Hardcoded sidebar template.
This commit is contained in:
2011-01-16 22:59:18 +00:00
parent ee1707d86e
commit 65c560cdf0
20 changed files with 558 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
class MediaListing_Source {
protected $name;
protected $path;
protected $root;
public function __construct($name, $path, $scan = true) {
$this->name = $name;
$this->path = $path;
if ($scan) {
$this->scan();
}
}
protected function scan() {
$this->root = MediaListing_FileObject::create($this->path);
}
public function name() {
return $this->name;
}
public function path() {
return $this->path();
}
public function root() {
return $this->root;
}
}
?>