12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- require_once('Resource.class.php');
- define('DOCUMENT','file');
- define('FOLDER','folder');
- class Document extends Resource
- {
- var $path;
- var $comment;
- var $file_type;
- var $size;
- var $title;
-
- function Document($id,$path,$comment,$title,$file_type,$size)
- {
- parent::Resource($id,RESOURCE_DOCUMENT);
- $this->path = 'document'.$path;
- $this->comment = $comment;
- $this->title = $title;
- $this->file_type = $file_type;
- $this->size = $size;
- }
-
- function show()
- {
- parent::show();
- echo substr($this->path,8);
- }
- }
- ?>
|