PHP Класс Components\ThemeManager\Services\ThemeInstaller

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

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

Свойство Тип Описание
$file
$full_path
$listener
$screenshot
$theme_directory

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

Метод Описание
__construct ( $listener, $input )
cleanup ( ) Cleans up the temporary files/folders from temporary directory
installTheme ( )

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

Метод Описание
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

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

Unzip() защищенный Метод

protected Unzip ( $file, $path )

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

public __construct ( $listener, $input )

backupDatabase() защищенный Метод

protected backupDatabase ( )

cleanup() публичный Метод

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

copyFiles() защищенный Метод

Copy the extracted files to their respective directory
protected copyFiles ( ) : [type]
Результат [type]

copySampleUploads() защищенный Метод

..) in the theme
protected copySampleUploads ( )

copyScreenshot() защищенный Метод

protected copyScreenshot ( )

extractToTemporary() защищенный Метод

protected extractToTemporary ( )

getAndCheckConfig() защищенный Метод

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

installModules() защищенный Метод

Install all modules bundled with the theme
protected installModules ( )

installSampleData() защищенный Метод

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

installTheme() публичный Метод

public installTheme ( )

seedDatabase() защищенный Метод

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

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

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

protected $file

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

protected $full_path

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

protected $listener

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

protected $screenshot

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

protected $theme_directory