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

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

 __construct ($path, $siteId=null)
 setOptions ($options)
 setSeekPosition ($seekPath)
 getSeekPosition ()
 getProcessedFileCount ()
 pack (Translate\IO\Directory $directory, $seekPath='')
 extract (Translate\IO\Directory $target)
Открытые члены унаследованные от File
 open ($mode)
 close ()
 isExists ()
 getContents ()
 putContents ($data, $flags=self::REWRITE)
 getSize ()
 seek ($position)
 isWritable ()
 isReadable ()
 readFile ()
 markWritable ()
 delete ()
 getContentType ()
Открытые члены унаследованные от FileEntry
 getExtension ()
 putContents ($data)
 getFileSize ()
 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 libAvailable ()
Открытые статические члены унаследованные от File
static isFileExists ($path)
static getFileContents ($path)
static putFileContents ($path, $data, $flags=self::REWRITE)
static deleteFile ($path)

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

Поля данных унаследованные от File
const REWRITE = 0
const APPEND = 1
Защищенные статические члены унаследованные от FileSystemEntry
static getDocumentRoot ($siteId)
Защищенные данные унаследованные от File
 $filePointer
Защищенные данные унаследованные от FileSystemEntry
 $path
 $originalPath
 $pathPhysical
 $siteId
bool $exists = null

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

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

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

◆ __construct()

__construct ( $path,
$siteId = null )

Archiver constructor.

Аргументы
string$pathEnd point archive file path.
string | null$siteIdSite id.

Переопределяет метод предка File.

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

Методы

◆ extract()

extract ( Translate\IO\Directory $target)

Extract language archive into target folder.

Аргументы
Translate\IO\Directory$targetFolder to extract files into it.
Возвращает
boolean

@noinspection

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

◆ getProcessedFileCount()

getProcessedFileCount ( )

Gets processed file count by archive.

Возвращает
int

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

◆ getSeekPosition()

getSeekPosition ( )

Gets packing seek position path.

Возвращает
string

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

◆ libAvailable()

libAvailable ( )
static

Checks zlib|gzcompress availability.

Возвращает
boolean

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

◆ pack()

pack ( Translate\IO\Directory $directory,
$seekPath = '' )

Pack language folder.

Аргументы
Translate\IO\Directory$directoryFolder to pack into archive.
string$seekPathContinue process from this path.
Возвращает
int

@noinspection

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

◆ setOptions()

setOptions ( $options)

Defines packing/unpacking options.

Аргументы
array$optionsAn array with the options' names and their values.
См. также
\CArchiver::setOptions()
Возвращает
void

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

◆ setSeekPosition()

setSeekPosition ( $seekPath)

Sets packing seek position path.

Аргументы
string$seekPathSeek position.
Возвращает
void

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


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