PHP Class Pommo_Filesystem_Item, poMMo

Afficher le fichier Open project: soonick/poMMo Class Usage Examples

Protected Properties

Свойство Type Description
$_itemPath string The path to the file or directory associated with this class

Méthodes publiques

Méthode 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 méthode

public __construct ( string $filePath )
$filePath string

copy() abstract public méthode

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

createAllDirectoriesInPath() public méthode

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

delete() abstract public méthode

Deletes this file or Directory
abstract public delete ( ) : boolean
Résultat boolean Success or Failure

exists() public méthode

public exists ( ) : boolean
Résultat boolean

factory() public static méthode

public static factory ( $itemPath ) : boolean | Pommo_Filesystem_Directory | Pommo_Filesystem_File
$itemPath
Résultat boolean | Pommo_Filesystem_Directory | Pommo_Filesystem_File

getBasename() public méthode

public getBasename ( ) : string
Résultat string

getDateLastModified() public méthode

public getDateLastModified ( ) : DateTime
Résultat DateTime

getItemPath() public méthode

public getItemPath ( ) : string
Résultat string

Property Details

$_itemPath protected_oe property

The path to the file or directory associated with this class
protected string $_itemPath
Résultat string