PHP Class Components\ThemeManager\Services\ThemeInstaller

ファイルを表示 Open project: doptor/doptor Class Usage Examples

Protected Properties

Property Type Description
$file
$full_path
$listener
$screenshot
$theme_directory

Public Methods

Method Description
__construct ( $listener, $input )
cleanup ( ) Cleans up the temporary files/folders from temporary directory
installTheme ( )

Protected Methods

Method Description
Unzip ( $file, $path )
backupDatabase ( )
copyFiles ( ) : [type] Copy the extracted files to their respective directory
copySampleUploads ( ) Copy the sample uploads(images, pdfs.
copyScreenshot ( )
extractToTemporary ( )
getAndCheckConfig ( ) Get the configuration file from the temporary folder, get its content
installModules ( ) Install all modules bundled with the theme
installSampleData ( $theme ) Install sample data present in the theme
seedDatabase ( $theme ) Seed the database using theme sample data

Method Details

Unzip() protected method

protected Unzip ( $file, $path )

__construct() public method

public __construct ( $listener, $input )

backupDatabase() protected method

protected backupDatabase ( )

cleanup() public method

Cleans up the temporary files/folders from temporary directory
public cleanup ( )

copyFiles() protected method

Copy the extracted files to their respective directory
protected copyFiles ( ) : [type]
return [type]

copySampleUploads() protected method

..) in the theme
protected copySampleUploads ( )

copyScreenshot() protected method

protected copyScreenshot ( )

extractToTemporary() protected method

protected extractToTemporary ( )

getAndCheckConfig() protected method

Get the configuration file from the temporary folder, get its content
protected getAndCheckConfig ( )

installModules() protected method

Install all modules bundled with the theme
protected installModules ( )

installSampleData() protected method

Install sample data present in the theme
protected installSampleData ( $theme )

installTheme() public method

public installTheme ( )

seedDatabase() protected method

Seed the database using theme sample data
protected seedDatabase ( $theme )

Property Details

$file protected_oe property

protected $file

$full_path protected_oe property

protected $full_path

$listener protected_oe property

protected $listener

$screenshot protected_oe property

protected $screenshot

$theme_directory protected_oe property

protected $theme_directory