DefaultThemeSettings

Class DefaultThemeSettings

Class to provide the default settings of a shop frontend theme. Used for overload able theme settings.

For overloading some of the theme settings do as follows:

  • create a overload of the DefaultThemeSettings class
  • create a overload of the setThemeSettings method:

    public function setThemeSettingsArray (array $settingsArray) { $settingsArray['MENUBOXES']['your_new_menu_box'] = array('POSITION' => 'gm_box_pos_99', 'STATUS' => 0); $this->themeSettingsArray = $settingsArray; }

category

System

package

Extensions

subpackage

Themes

Methods

Getter method

getThemeSettingsArray() : array

Returns the settings of a theme as an array.

Response

array

Setter method

setThemeSettingsArray(array $settingsArray) 

Sets the themeSettingsArray to the given values.

You can use something like this to manipulate the settingsArray:

public function setThemeSettingsArray (array $settingsArray) { $settingsArray['MENUBOXES']['your_new_menu_box'] = array('POSITION' => 'gm_box_pos_99', 'STATUS' => 0); $this->themeSettingsArray = $settingsArray; }

Arguments

$settingsArray

array

Properties

themeSettingsArray

themeSettingsArray : array
var

Type(s)

array