public function __construct($sSessionKey = null, $sModuleContents = null, $mModuleSettings = null) { parent::__construct($sSessionKey); $this->sModuleContents = $sModuleContents; if ($mModuleSettings === null || is_string($mModuleSettings)) { $this->aModuleSettings = Settings::getSetting('text_module', null, array()); if ($mModuleSettings !== null) { $this->aModuleSettings = array_merge($this->aModuleSettings, Settings::getSetting($mModuleSettings, 'text_module', array())); } } else { $this->aModuleSettings = $mModuleSettings; } $this->cleanupCss(); $this->cleanupStyles(); $this->cleanupFormatTags(); $this->cleanupInsertableParts(); $this->cleanupToolbar(); foreach ($this->aModuleSettings as $sKey => $mSetting) { $this->setSetting($sKey, $mSetting); } // let CKEDITOR find plugins $aPlugins = array(); foreach (ResourceFinder::create()->addPath(DIRNAME_WEB, ResourceIncluder::RESOURCE_TYPE_JS, 'widget', 'ckeditor-plugins')->addDirPath()->addRecursion()->addPath('plugin.js')->returnObjects()->find() as $oPluginPath) { $oPluginPath = $oPluginPath->parent(); $aPlugins[$oPluginPath->getFileName()] = $oPluginPath->getFrontendPath() . '/'; } if (count($aPlugins) === 0) { $aPlugins = null; } $this->setSetting('additional_plugin_paths', $aPlugins); $this->setSetting('language', Session::language()); }
public function __construct($sSessionId) { parent::__construct($sSessionId); $oRichtext = WidgetModule::getWidget('rich_text', null, null, 'documentation'); $oRichtext->setTemplate(PagePeer::getRootPage()->getTemplate()); $this->setSetting('richtext_session', $oRichtext->getSessionKey()); $this->setSetting('international_option', LanguageInputWidgetModule::isMonolingual()); }
public function __construct($sSessionKey = null) { parent::__construct($sSessionKey); $oRichtextWidget = WidgetModule::getWidget('rich_text', null, '', 'newsletter'); $oNewsletterPage = PageQuery::create()->findOneByIdentifier('newsletter'); if ($oNewsletterPage) { $oRichtextWidget->setTemplate($oNewsletterPage->getTemplate()); } $this->setSetting('rich_text_session', $oRichtextWidget->getSessionKey()); }
public function __construct($sSessionId) { parent::__construct($sSessionId); $iDocumentationPartCategory = 2; if (DocumentCategoryQuery::create()->filterById($iDocumentationPartCategory)->count() === 0) { throw new Exception(__METHOD__ . ': Please setup the exernally managed document category for this module'); } $this->setSetting('documentation_image_category_id', $iDocumentationPartCategory); $oRichtext = WidgetModule::getWidget('rich_text', null, null, 'documentation_part'); $oRichtext->setTemplate(PagePeer::getRootPage()->getTemplate()); $this->setSetting('richtext_session', $oRichtext->getSessionKey()); }
public function __construct($sSessionKey, $oFrontendModule, $mInternalWidget = null) { parent::__construct($sSessionKey); $this->oFrontendModule = $oFrontendModule; if ($mInternalWidget instanceof WidgetModule || $mInternalWidget instanceof Template || is_string($mInternalWidget)) { $this->oInternalWidget = $mInternalWidget; } else { if ($mInternalWidget === null) { $this->oInternalWidget = $oFrontendModule->widgetData(); } } }
public function __construct($sSessionKey = null, $oPage = null) { parent::__construct($sSessionKey); $this->oRichTextWidget = WidgetModule::getWidget('rich_text', null, null, 'journal'); if ($oPage === null) { // get any blog page in site $oPage = PageQuery::create()->filterByPageType('journal')->joinPageProperty()->useQuery('PageProperty')->filterByName('journal:journal_id')->endUse()->findOne(); } if ($oPage) { $this->oRichTextWidget->setTemplate($oPage->getTemplateNameUsed()); } $this->setSetting('richtext_session', $this->oRichTextWidget->getSessionKey()); $iJournalEntryImageCategory = Settings::getSetting('journal', 'externally_managed_images_category', null); $this->setSetting('journal_entry_images_category_id', $iJournalEntryImageCategory); $this->setSetting('date_today', date('d.m.Y')); $this->setSetting('date_format', 'dd.mm.yy'); }
public function __construct($sSessionKey = null, $oDelegate) { parent::__construct($sSessionKey); $this->oDelegate = $oDelegate; }
public function __construct($sSessionId) { parent::__construct($sSessionId); $this->setSetting('active_accordion', $this->getActiveAccordion()); }
public function __construct($sWidgetId = null) { parent::__construct($sWidgetId); $this->setSetting('is_monolingual', self::isMonolingual()); $this->setSetting('session_language', Session::language()); }
public function __construct($sSessionKey = null) { parent::__construct($sSessionKey); $this->oImagePicker = new ImagePickerWidgetModule(); $this->oImagePicker->setAllowsMultiselect(false); }
public function __construct($sSessionKey = null, $sDefaultSelection = CriteriaListWidgetDelegate::SELECT_ALL) { parent::__construct($sSessionKey); $this->sSelectedUserKind = $sDefaultSelection; }
public function __construct($sWidgetId = null) { parent::__construct($sWidgetId); $this->setSetting('backup_storage_limit_warning', Settings::getSetting('admin', 'backup_storage_limit_warning', 1000000000)); }
public function __construct($sSessionKey, $oFrontendModule) { parent::__construct($sSessionKey); $this->oFrontendModule = $oFrontendModule; }
public function __construct($sSessionKey = null, ListWidgetDelegate $oDelegate = null) { parent::__construct($sSessionKey); $this->oDelegate = $oDelegate; }
public function __construct($sWidgetId) { parent::__construct($sWidgetId); }
public function __construct($sSessionKey = null) { parent::__construct($sSessionKey); }
public function __construct($sSessionKey = null, $sDefaultSelection = true) { parent::__construct($sSessionKey); $this->bIsTrue = $sDefaultSelection; }
public function __construct($sSessionKey, $oCurrentLanguageObject, $oModuleInstance) { parent::__construct($sSessionKey); $this->oCurrentLanguageObject = $oCurrentLanguageObject; $this->oModuleInstance = $oModuleInstance; }
public function __construct($sSessionKey = null) { parent::__construct($sSessionKey); $oPopover = WidgetModule::getWidget('popover', null, $this); $this->setSetting('popover', $oPopover->getSessionKey()); }