DefaultTemplateSettings

Class DefaultTemplateSettings

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

For overloading some of the template settings do as follows:

  • create a overload of the DefaultTemplateSettings class
  • create a overload of the setTemplateSettings method:

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

category

System

package

Extensions

subpackage

Templates

Methods

Getter method

getTemplateSettingsArray() : array

Returns the settings of a template as an array.

Response

array

Setter method

setTemplateSettingsArray(array $settingsArray) 

Sets the templateSettingsArray to the given values.

You can use something like this to manipulate the settingsArray:

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

Arguments

$settingsArray

array

Properties

templateSettingsArray

templateSettingsArray : array
var

Type(s)

array