1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Directory
Граф наследования:Directory:
Directory IErrorable DirectoryEntry Errorable FileSystemEntry

Открытые члены

 __construct (string $path, ?string $siteId=null)
 wipe (?\Closure $filter=null)
Открытые члены унаследованные от Directory
 __construct ($path, $siteId=null)
 isExists ()
 delete ()
 getChildren ()
 createSubdirectory ($name)
 markWritable ()
Открытые члены унаследованные от DirectoryEntry
 create ()
 isDirectory ()
 isFile ()
 isLink ()
Открытые члены унаследованные от FileSystemEntry
 isSystem ()
 getName ()
 getDirectoryName ()
 getPath ()
 getDirectory ()
 getCreationTime ()
 getLastAccessTime ()
 getModificationTime ()
 getPermissions ()
 getPhysicalPath ()
 rename ($newPath)
Открытые члены унаследованные от IErrorable
 addError (Main\Error $error)
 addErrors (array $errors)
 hasErrors ()
Открытые члены унаследованные от Errorable
 getErrors ()
 getErrorByCode ($code)

Открытые статические члены

static generateTemporalDirectory (string $prefix, int $timeToLive=3)
Открытые статические члены унаследованные от Directory
static createDirectory ($path)
static deleteDirectory ($path)
static isDirectoryExists ($path)

Дополнительные унаследованные члены

Защищенные статические члены унаследованные от FileSystemEntry
static getDocumentRoot ($siteId)
Защищенные данные унаследованные от FileSystemEntry
 $path
 $originalPath
 $pathPhysical
 $siteId
bool $exists = null

Подробное описание

См. определение в файле directory.php строка 9

Конструктор(ы)

◆ __construct()

__construct ( string $path,
?string $siteId = null )

Constructor.

Аргументы
string$pathFolder path.
string | null$siteIdSite id.

См. определение в файле directory.php строка 21

Методы

◆ generateTemporalDirectory()

generateTemporalDirectory ( string $prefix,
int $timeToLive = 3 )
static

Creates temporal directory.

Аргументы
string$prefixName prefix.
int$timeToLiveHours to keep files alive.
Возвращает
self

См. определение в файле directory.php строка 34

◆ wipe()

wipe ( ?\Closure $filter = null)

Wipes folder out of children.

Аргументы
\Closure | null$filterFilter function.
Возвращает
bool
Исключения
Main

IO\FileNotFoundException

Исключения
Main

IO\InvalidPathException

См. определение в файле directory.php строка 258


Объявления и описания членов класса находятся в файле: