Login   Register  
PHP Classes
elePHPant
Icontem

File: File

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gezim Muja  >  FSOP  >  File  >  Download  
File: File
Role: Class source
Content type: text/plain
Description: File properties
Class: FSOP
Manipulate files and directories
Author: By
Last change: It is required by the FSOP file. The file File is a class that contain the properties of a file. A instance of this class is used in ls() function which is implemented in the FSOP class.
Date: 3 years ago
Size: 724 bytes
 

Contents

Class file image Download
<?php
/*
* It is required by the FSOP file. 
* The file File is a class that contain the properties of a file. 
* A instance of this class is used in ls() function which is implemented in the FSOP class.
*/
class File {
    public 
$file_name;
    public 
$file_size;
    public 
$permission;
    public 
$last_modified;
    public 
$file_type;
    public 
$file_ext;

    function 
__construct($file_name$file_size$permission$last_modified$file_type$file_ext){
        
$this->file_name=$file_name;
        
$this->file_size=$file_size;
        
$this->permission=$permission;
        
$this->last_modified=$last_modified;
        
$this->file_type=$file_type;
        
$this->file_ext=$file_ext;
    }
}