PHP Class CTConfiguration, community-theme-16

Inheritance: extends Module
Afficher le fichier Open project: PrestaShop/community-theme-16

Méthodes publiques

Méthode Description
__construct ( ) CTConfiguration constructor.
getContent ( ) : string Compiles and returns module configuration page content
hookDisplayFooterProduct ( ) Adds JS files to product page
hookDisplayHeader ( ) Adds assets to page header and passes configuration variables to smarty
install ( ) : boolean Installs module to PrestaShop
uninstall ( ) * Uninstalls module from PrestaShop

Méthodes protégées

Méthode Description
getOptionFields ( ) : array Return HelperOptions fields that are using in module configuration form.
hookModule ( string $module, string $hook ) : boolean Registers a module hook
postProcess ( ) Processes submitted configuration variables
unhookModule ( string $module, string $hook ) : boolean Unhooks a module hook

Method Details

__construct() public méthode

CTConfiguration constructor.
public __construct ( )

getContent() public méthode

Compiles and returns module configuration page content
public getContent ( ) : string
Résultat string

getOptionFields() protected méthode

Return HelperOptions fields that are using in module configuration form.
protected getOptionFields ( ) : array
Résultat array

hookDisplayFooterProduct() public méthode

Adds JS files to product page

hookDisplayHeader() public méthode

Adds assets to page header and passes configuration variables to smarty
public hookDisplayHeader ( )

hookModule() protected méthode

Registers a module hook
protected hookModule ( string $module, string $hook ) : boolean
$module string
$hook string
Résultat boolean

install() public méthode

Installs module to PrestaShop
public install ( ) : boolean
Résultat boolean

postProcess() protected méthode

Processes submitted configuration variables
protected postProcess ( )

unhookModule() protected méthode

Unhooks a module hook
protected unhookModule ( string $module, string $hook ) : boolean
$module string
$hook string
Résultat boolean

uninstall() public méthode

* Uninstalls module from PrestaShop
public uninstall ( )