PHP Class CTConfiguration, community-theme-16

Inheritance: extends Module
显示文件 Open project: PrestaShop/community-theme-16

Public Methods

Method 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

Protected Methods

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

CTConfiguration constructor.
public __construct ( )

getContent() public method

Compiles and returns module configuration page content
public getContent ( ) : string
return string

getOptionFields() protected method

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

hookDisplayFooterProduct() public method

Adds JS files to product page

hookDisplayHeader() public method

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

hookModule() protected method

Registers a module hook
protected hookModule ( string $module, string $hook ) : boolean
$module string
$hook string
return boolean

install() public method

Installs module to PrestaShop
public install ( ) : boolean
return boolean

postProcess() protected method

Processes submitted configuration variables
protected postProcess ( )

unhookModule() protected method

Unhooks a module hook
protected unhookModule ( string $module, string $hook ) : boolean
$module string
$hook string
return boolean

uninstall() public method

* Uninstalls module from PrestaShop
public uninstall ( )