1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CBXVirtualIo
Граф наследования:CBXVirtualIo:
IBXVirtualIO IBXGetErrors

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

 __construct ()
 CombinePath ()
 RelativeToAbsolutePath ($relativePath)
 SiteRelativeToAbsolutePath ($relativePath, $site=null)
 GetPhysicalName ($path)
 GetLogicalName ($path)
 ExtractNameFromPath ($path)
 ExtractPathFromPath ($path)
 ValidatePathString ($path)
 ValidateFilenameString ($filename)
 RandomizeInvalidFilename ($filename)
 DirectoryExists ($path)
 FileExists ($path)
 GetDirectory ($path)
 GetFile ($path)
 OpenFile ($path, $mode)
 Delete ($path)
 Copy ($source, $target, $bRewrite=true)
 Move ($source, $target, $bRewrite=true)
 Rename ($source, $target)
 ClearCache ()
 CreateDirectory ($path)
 GetErrors ()

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

static GetInstance ()

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

Proxy class for file IO. Provides a set of methods to retrieve resources from a file system.

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

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

◆ __construct()

__construct ( )

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

Методы

◆ ClearCache()

ClearCache ( )

Clear file system cache (if any)

Возвращает
void

Замещает IBXVirtualIO.

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

◆ CombinePath()

CombinePath ( )

Combines a path parts

Variable-length argument list

Возвращает
string - Combined path

Замещает IBXVirtualIO.

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

◆ Copy()

Copy ( $source,
$target,
$bRewrite = true )

Copies a file or directory from source location to target

Аргументы
string$source- Complete path of the source file or directory
string$target- Complete path of the target file or directory
bool$bRewrite- True to rewrite existing files, false - otherwise
Возвращает
bool - Result

Замещает IBXVirtualIO.

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

◆ CreateDirectory()

CreateDirectory ( $path)

Creates a directory if is is not exist

Аргументы
string$path- Complete path of the directory
Возвращает
CBXVirtualDirectory|null

Замещает IBXVirtualIO.

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

◆ Delete()

Delete ( $path)

Deletes a file or directory from the file system

Аргументы
string$path- Complete path to the file or directory
Возвращает
bool - Result

Замещает IBXVirtualIO.

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

◆ DirectoryExists()

DirectoryExists ( $path)

Gets a value that indicates whether a directory exists in the file system

Аргументы
string$path- Complete path to the directory
Возвращает
bool - True if the directory exists, false - otherwise

Замещает IBXVirtualIO.

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

◆ ExtractNameFromPath()

ExtractNameFromPath ( $path)

Returns name of the file or directory

Аргументы
string$path- Path
Возвращает
string - File/directory name

Замещает IBXVirtualIO.

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

◆ ExtractPathFromPath()

ExtractPathFromPath ( $path)

Returns path to the file or directory (without file/directory name)

Аргументы
string$path- Path
Возвращает
string - Result

Замещает IBXVirtualIO.

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

◆ FileExists()

FileExists ( $path)

Gets a value that indicates whether a file exists in the file system

Аргументы
string$path- Complete path to the file
Возвращает
bool - True if the file exists, false - otherwise

Замещает IBXVirtualIO.

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

◆ GetDirectory()

GetDirectory ( $path)

Gets a directory from the file system

Аргументы
string$path- Complete path to the directory
Возвращает
CBXVirtualDirectoryFileSystem

Замещает IBXVirtualIO.

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

◆ GetErrors()

GetErrors ( )

Returns runtime errors

Возвращает
array - Array of errors

Замещает IBXGetErrors.

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

◆ GetFile()

GetFile ( $path)

Gets a virtual file from the file system

Аргументы
string$path- Complete path to the file
Возвращает
CBXVirtualFileFileSystem

Замещает IBXVirtualIO.

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

◆ GetInstance()

GetInstance ( )
static

Returns proxy class instance (singleton pattern)

Возвращает
CBXVirtualIo - Proxy class instance

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

◆ GetLogicalName()

GetLogicalName ( $path)

Замещает IBXVirtualIO.

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

◆ GetPhysicalName()

GetPhysicalName ( $path)

Returns Physical path to file or directory

Аргументы
string$path- Path
Возвращает
string - Physical path

Замещает IBXVirtualIO.

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

◆ Move()

Move ( $source,
$target,
$bRewrite = true )

Moves a file or directory from source location to target

Аргументы
string$source- Complete path of the source file or directory
string$target- Complete path of the target file or directory
bool$bRewrite- True to rewrite existing files, false - otherwise
Возвращает
bool - Result

Замещает IBXVirtualIO.

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

◆ OpenFile()

OpenFile ( $path,
$mode )

Returns a stream from a file

Аргументы
string$path- Complete path to the file
string$mode- The type of access to the file ('rb' - reading, 'wb' - writing, 'ab' - appending)
Возвращает
resource

Замещает IBXVirtualIO.

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

◆ RandomizeInvalidFilename()

RandomizeInvalidFilename ( $filename)
Аргументы
string$filename
Возвращает
string

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

◆ RelativeToAbsolutePath()

RelativeToAbsolutePath ( $relativePath)

Converts a relative path to absolute one

Аргументы
string$relativePath- Relative path
Возвращает
string - Complete path

Замещает IBXVirtualIO.

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

◆ Rename()

Rename ( $source,
$target )

Замещает IBXVirtualIO.

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

◆ SiteRelativeToAbsolutePath()

SiteRelativeToAbsolutePath ( $relativePath,
$site = null )

Замещает IBXVirtualIO.

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

◆ ValidateFilenameString()

ValidateFilenameString ( $filename)
Аргументы
string$filename
Возвращает
bool

Замещает IBXVirtualIO.

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

◆ ValidatePathString()

ValidatePathString ( $path)
Аргументы
string$path
Возвращает
bool

Замещает IBXVirtualIO.

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


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