PHP Класс Pagekit\Installer\SelfUpdater

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$cleanFolder array
$ignoreFolder array
$output string
$path string

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

Метод Описание
__construct ( Symfony\Component\Console\Output\OutputInterface $output = null ) Constructor.
update ( $file ) Runs Pagekit self update.

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

Метод Описание
cleanup ( $fileList, $path ) : array Scans directory for old files.
doCleanup ( $fileList, $dir, $path ) : array
extract ( $file, $fileList, $path ) Extracts an archive.
getFileList ( $file ) : array Generates file list for given archive.
isWritable ( $fileList, $path ) : boolean | array Checks if directory is writable.
setUpdateMode ( $active ) Toggles update mode without booting Pagekit application.

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

__construct() публичный метод

Constructor.
public __construct ( Symfony\Component\Console\Output\OutputInterface $output = null )
$output Symfony\Component\Console\Output\OutputInterface

cleanup() защищенный метод

Scans directory for old files.
protected cleanup ( $fileList, $path ) : array
$fileList
$path
Результат array

doCleanup() защищенный метод

protected doCleanup ( $fileList, $dir, $path ) : array
$fileList
$dir
$path
Результат array

extract() защищенный метод

Extracts an archive.
protected extract ( $file, $fileList, $path )
$file
$fileList
$path

getFileList() защищенный метод

Generates file list for given archive.
protected getFileList ( $file ) : array
$file
Результат array

isWritable() защищенный метод

Checks if directory is writable.
protected isWritable ( $fileList, $path ) : boolean | array
$fileList
$path
Результат boolean | array

setUpdateMode() защищенный метод

Toggles update mode without booting Pagekit application.
protected setUpdateMode ( $active )
$active

update() публичный метод

Runs Pagekit self update.
public update ( $file )
$file

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

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

protected array $cleanFolder
Результат array

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

protected array $ignoreFolder
Результат array

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

protected string $output
Результат string

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

protected string $path
Результат string