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,23 @@
<?php
class MediaListing_File extends MediaListing_FileObject {
protected $size;
public function __construct($path) {
if ( ! is_file($path)) {
throw new MediaListing_Exception_NotAFile($path);
}
parent::__construct(parent::TYPE_File, $path);
$this->size = filesize($this->path);
}
public function size() {
return $this->size;
}
}
?>