PHP Class Pagekit\Installer\SelfUpdater

Afficher le fichier Open project: pagekit/pagekit Class Usage Examples

Protected Properties

Свойство Type Description
$cleanFolder array
$ignoreFolder array
$output string
$path string

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\Console\Output\OutputInterface $output = null ) Constructor.
update ( $file ) Runs Pagekit self update.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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

cleanup() protected méthode

Scans directory for old files.
protected cleanup ( $fileList, $path ) : array
$fileList
$path
Résultat array

doCleanup() protected méthode

protected doCleanup ( $fileList, $dir, $path ) : array
$fileList
$dir
$path
Résultat array

extract() protected méthode

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

getFileList() protected méthode

Generates file list for given archive.
protected getFileList ( $file ) : array
$file
Résultat array

isWritable() protected méthode

Checks if directory is writable.
protected isWritable ( $fileList, $path ) : boolean | array
$fileList
$path
Résultat boolean | array

setUpdateMode() protected méthode

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

update() public méthode

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

Property Details

$cleanFolder protected_oe property

protected array $cleanFolder
Résultat array

$ignoreFolder protected_oe property

protected array $ignoreFolder
Résultat array

$output protected_oe property

protected string $output
Résultat string

$path protected_oe property

protected string $path
Résultat string