PHP Класс Redaxscript\Directory

С версии: 2.0.0
Автор: Henry Ruhs
Автор: Gary Aylward
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_directory string name of the directory
$_directoryArray array array of the directory
$_directoryCache array static directory cache
$_excludeArray array files to be excluded

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
_remove ( string $path = null ) remove the path
_scan ( string $directory = null ) : array scan the directory

Описание методов

_remove() защищенный Метод

remove the path
С версии: 3.0.0
protected _remove ( string $path = null )
$path string name of the path

_scan() защищенный Метод

scan the directory
С версии: 2.0.0
protected _scan ( string $directory = null ) : array
$directory string name of the directory
Результат array

clear() публичный Метод

clear the directory
С версии: 3.0.0
public clear ( )

create() публичный Метод

create the directory
С версии: 3.0.0
public create ( string $directory = null, integer $mode = 511 )
$directory string name of the directory
$mode integer file access mode

getArray() публичный Метод

get the directory array
С версии: 2.0.0
public getArray ( ) : array
Результат array

init() публичный Метод

init the class
С версии: 2.4.0
public init ( string $directory = null, array $excludeArray = [] )
$directory string name of the directory
$excludeArray array files to be excluded

put() публичный Метод

put content to file
С версии: 3.0.0
public put ( string $path = null, string $content = null )
$path string name of the path
$content string content of the file

remove() публичный Метод

remove the path
С версии: 3.0.0
public remove ( string $path = null )
$path string name of the $path

Описание свойств

$_directory защищенное свойство

name of the directory
protected string $_directory
Результат string

$_directoryArray защищенное свойство

array of the directory
protected array $_directoryArray
Результат array

$_directoryCache защищенное статическое свойство

static directory cache
protected static array $_directoryCache
Результат array

$_excludeArray защищенное свойство

files to be excluded
protected array $_excludeArray
Результат array