/* To support tabspec part parameters
* In the simpeler case values in $tabsSpec are Strings.
* Here we assume that if one is an array, a Part should be
* created and initialized with those parameters.
* Afther that has been done the array is replaced by the tab name
*/
function () {
forEach(array_keys($this->tabsSpec) as $key) {
$partSpec = $this->tabsSpec[$key];
if (is_array($partSpec)) {
$tabName = $this->($partSpec[0]);
$partArgs = array_slice($partSpec, 1);
$this->contentParts[$tabName] = $this->($partArgs, false); //do not use part cache
if ($this->contentParts[$tabName] == null)
trigger_error("Could not get Part: $partArgs[0]", E_USER_WARNING);
$this->tabsSpec[$key] = $tabName;
} else {
$this->($partSpec);
}
}
}
|