Пример #1
0
 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');
 }
Пример #7
0
 public function __construct($sSessionKey = null, $oDelegate)
 {
     parent::__construct($sSessionKey);
     $this->oDelegate = $oDelegate;
 }
Пример #8
0
 public function __construct($sSessionId)
 {
     parent::__construct($sSessionId);
     $this->setSetting('active_accordion', $this->getActiveAccordion());
 }
Пример #9
0
 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);
 }
Пример #11
0
 public function __construct($sSessionKey = null, $sDefaultSelection = CriteriaListWidgetDelegate::SELECT_ALL)
 {
     parent::__construct($sSessionKey);
     $this->sSelectedUserKind = $sDefaultSelection;
 }
Пример #12
0
 public function __construct($sWidgetId = null)
 {
     parent::__construct($sWidgetId);
     $this->setSetting('backup_storage_limit_warning', Settings::getSetting('admin', 'backup_storage_limit_warning', 1000000000));
 }
Пример #13
0
 public function __construct($sSessionKey, $oFrontendModule)
 {
     parent::__construct($sSessionKey);
     $this->oFrontendModule = $oFrontendModule;
 }
Пример #14
0
 public function __construct($sSessionKey = null, ListWidgetDelegate $oDelegate = null)
 {
     parent::__construct($sSessionKey);
     $this->oDelegate = $oDelegate;
 }
Пример #15
0
 public function __construct($sWidgetId)
 {
     parent::__construct($sWidgetId);
 }
Пример #16
0
 public function __construct($sSessionKey = null)
 {
     parent::__construct($sSessionKey);
 }
Пример #17
0
 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;
 }
Пример #19
0
 public function __construct($sSessionKey = null)
 {
     parent::__construct($sSessionKey);
     $oPopover = WidgetModule::getWidget('popover', null, $this);
     $this->setSetting('popover', $oPopover->getSessionKey());
 }