PHP Class Pagekit\Installer\SelfUpdater

Mostrar archivo Open project: pagekit/pagekit Class Usage Examples

Protected Properties

Property Type Description
$cleanFolder array
$ignoreFolder array
$output string
$path string

Public Methods

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

Protected Methods

Method 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 method

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

cleanup() protected method

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

doCleanup() protected method

protected doCleanup ( $fileList, $dir, $path ) : array
$fileList
$dir
$path
return array

extract() protected method

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

getFileList() protected method

Generates file list for given archive.
protected getFileList ( $file ) : array
$file
return array

isWritable() protected method

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

setUpdateMode() protected method

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

update() public method

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

Property Details

$cleanFolder protected_oe property

protected array $cleanFolder
return array

$ignoreFolder protected_oe property

protected array $ignoreFolder
return array

$output protected_oe property

protected string $output
return string

$path protected_oe property

protected string $path
return string