PHP Class Pommo_Filesystem_Directory, poMMo

Inheritance: extends Pommo_Filesystem_Item
Exibir arquivo Open project: soonick/poMMo Class Usage Examples

Public Methods

Method Description
copy ( $destination ) : boolean Copies this directory and all its children to $destination
delete ( ) : boolean Deletes this directory and all its children
getAllSubfoldersList ( ) : array Gets an array list of all the sub-directories found in this directory.
getDirectoryFiles ( ) : array | Pommo_Filesystem_File[] Gets all file objects that are immediate sub-children of this directory
getSubDirectories ( ) : array | Pommo_Filesystem_Directory[]

Private Methods

Method Description
_getAllFoldersRecursive ( string $directory ) : array Recursive Helper function for getAllSubfoldersList()

Method Details

copy() public method

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

delete() public method

Deletes this directory and all its children
public delete ( ) : boolean
return boolean Success or Failure

getAllSubfoldersList() public method

.. recursively
public getAllSubfoldersList ( ) : array
return array

getDirectoryFiles() public method

Gets all file objects that are immediate sub-children of this directory
public getDirectoryFiles ( ) : array | Pommo_Filesystem_File[]
return array | Pommo_Filesystem_File[]

getSubDirectories() public method

public getSubDirectories ( ) : array | Pommo_Filesystem_Directory[]
return array | Pommo_Filesystem_Directory[]