PHP Class Components\ThemeManager\Services\ThemeInstaller

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

Protected Properties

Свойство Type Description
$file
$full_path
$listener
$screenshot
$theme_directory

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

protected Unzip ( $file, $path )

__construct() public méthode

public __construct ( $listener, $input )

backupDatabase() protected méthode

protected backupDatabase ( )

cleanup() public méthode

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

copyFiles() protected méthode

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

copySampleUploads() protected méthode

..) in the theme
protected copySampleUploads ( )

copyScreenshot() protected méthode

protected copyScreenshot ( )

extractToTemporary() protected méthode

protected extractToTemporary ( )

getAndCheckConfig() protected méthode

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

installModules() protected méthode

Install all modules bundled with the theme
protected installModules ( )

installSampleData() protected méthode

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

installTheme() public méthode

public installTheme ( )

seedDatabase() protected méthode

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