PHP Class Pommo_Filesystem_Item, poMMo

Mostra file Open project: soonick/poMMo Class Usage Examples

Protected Properties

Property Type Description
$_itemPath string The path to the file or directory associated with this class

Public Methods

Method Description
__construct ( string $filePath )
copy ( $destination ) : boolean Copies this file/directory and all its children to $destination
createAllDirectoriesInPath ( ) Creates all directories in the file path if the directory doesn't already exist
delete ( ) : boolean Deletes this file or Directory
exists ( ) : boolean
factory ( $itemPath ) : boolean | Pommo_Filesystem_Directory | Pommo_Filesystem_File
getBasename ( ) : string
getDateLastModified ( ) : DateTime
getItemPath ( ) : string

Method Details

__construct() public method

public __construct ( string $filePath )
$filePath string

copy() abstract public method

Copies this file/directory and all its children to $destination
abstract public copy ( $destination ) : boolean
$destination
return boolean Success or Failure

createAllDirectoriesInPath() public method

Creates all directories in the file path if the directory doesn't already exist

delete() abstract public method

Deletes this file or Directory
abstract public delete ( ) : boolean
return boolean Success or Failure

exists() public method

public exists ( ) : boolean
return boolean

factory() public static method

public static factory ( $itemPath ) : boolean | Pommo_Filesystem_Directory | Pommo_Filesystem_File
$itemPath
return boolean | Pommo_Filesystem_Directory | Pommo_Filesystem_File

getBasename() public method

public getBasename ( ) : string
return string

getDateLastModified() public method

public getDateLastModified ( ) : DateTime
return DateTime

getItemPath() public method

public getItemPath ( ) : string
return string

Property Details

$_itemPath protected_oe property

The path to the file or directory associated with this class
protected string $_itemPath
return string