* @param $keyGroup Main group for the key
* @param $subGroup Sub group for the key
* @param $key Key to use
+ * @param $forceInit Optionally force initialization
* @return void
*/
- protected final function initGenericArray ($keyGroup, $subGroup, $key) {
+ protected final function initGenericArray ($keyGroup, $subGroup, $key, $forceInit = FALSE) {
// Is it already set?
- if ($this->isGenericArrayKeySet($keyGroup, $subGroup, $key)) {
+ if (($forceInit === FALSE) && ($this->isGenericArrayKeySet($keyGroup, $subGroup, $key))) {
// Already initialized
trigger_error(__METHOD__ . ':keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ' already initialized.');
} // END - if
} // END - if
// Initialize the given stack
- $this->initGenericArray('stacks', $stackerName, 'entries');
+ $this->initGenericArray('stacks', $stackerName, 'entries', $forceReInit);
}
/**