PHP Class Redaxscript\Directory

Since: 2.0.0
Author: Henry Ruhs
Author: Gary Aylward
Afficher le fichier Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Свойство Type Description
$_directory string name of the directory
$_directoryArray array array of the directory
$_directoryCache array static directory cache
$_excludeArray array files to be excluded

Méthodes publiques

Méthode Description
clear ( ) clear the directory
create ( string $directory = null, integer $mode = 511 ) create the directory
getArray ( ) : array get the directory array
init ( string $directory = null, array $excludeArray = [] ) init the class
put ( string $path = null, string $content = null ) put content to file
remove ( string $path = null ) remove the path

Méthodes protégées

Méthode Description
_remove ( string $path = null ) remove the path
_scan ( string $directory = null ) : array scan the directory

Method Details

_remove() protected méthode

remove the path
Since: 3.0.0
protected _remove ( string $path = null )
$path string name of the path

_scan() protected méthode

scan the directory
Since: 2.0.0
protected _scan ( string $directory = null ) : array
$directory string name of the directory
Résultat array

clear() public méthode

clear the directory
Since: 3.0.0
public clear ( )

create() public méthode

create the directory
Since: 3.0.0
public create ( string $directory = null, integer $mode = 511 )
$directory string name of the directory
$mode integer file access mode

getArray() public méthode

get the directory array
Since: 2.0.0
public getArray ( ) : array
Résultat array

init() public méthode

init the class
Since: 2.4.0
public init ( string $directory = null, array $excludeArray = [] )
$directory string name of the directory
$excludeArray array files to be excluded

put() public méthode

put content to file
Since: 3.0.0
public put ( string $path = null, string $content = null )
$path string name of the path
$content string content of the file

remove() public méthode

remove the path
Since: 3.0.0
public remove ( string $path = null )
$path string name of the $path

Property Details

$_directory protected_oe property

name of the directory
protected string $_directory
Résultat string

$_directoryArray protected_oe property

array of the directory
protected array $_directoryArray
Résultat array

$_directoryCache protected_oe static_oe property

static directory cache
protected static array $_directoryCache
Résultat array

$_excludeArray protected_oe property

files to be excluded
protected array $_excludeArray
Résultat array