$this->phonegapVersion = self::getPhonegapVersion($phonegapVersion);
$this->appcache = $appcache;
$this->multiApp = $this->home = $home;
- $this->devversion = $this->getFluidbook()->mobileLVersion;
+ $this->devversion = $this->getFluidbook()->version < 3 ? "dev" : $this->getFluidbook()->mobileLVersion;
$this->scormVariant = $scormVariant;
$this->hybrid = $hybrid;
}
$this->config = new Data(array_merge($this->fluidbookSettings->getRawData()['settings'], $this->themeSettings->getRawData()));
+
$this->config->pages = count($this->getFluidbook()->composition);
$this->config->bookmarkDisablePages = ArrayUtil::parseRange($this->config->bookmarkDisablePages);
$this->config->rasterizePages = ArrayUtil::parseRange($this->config->rasterizePages);
{
if (null === $this->_settingsData) {
$this->_settingsData = $this->getPageData();
+
+ $this->_settingsData->setOffsetPrefix('settings.');
+ foreach ($this->getFields() as $field) {
+ if (!$field->getAttribute('fake') || $field->getAttribute('store_in') !== 'settings') {
+ continue;
+ }
+ if ($this->_settingsData->has($field->getName())) {
+ continue;
+ }
+ $this->_settingsData->set($field->getName(), $field->getAttribute('default'));
+ }
+
}
return $this->_settingsData;
}