/**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     if (!count($_POST)) {
         // default settings
         if (WCF::getUser()->userID) {
             // wysiwyg
             $this->wysiwygEditorMode = WCF::getUser()->wysiwygEditorMode;
             $this->wysiwygEditorHeight = WCF::getUser()->wysiwygEditorHeight;
             // options
             if ($this->permissionType !== null) {
                 $this->parseURL = WCF::getUser()->{$this->permissionType . 'ParseURL'};
                 $this->enableSmilies = WCF::getUser()->{$this->permissionType . 'EnableSmilies'};
                 $this->enableHtml = WCF::getUser()->{$this->permissionType . 'EnableHtml'};
                 $this->enableBBCodes = WCF::getUser()->{$this->permissionType . 'EnableBBCodes'};
                 if ($this->showSignatureSetting) {
                     $this->showSignature = WCF::getUser()->{$this->permissionType . 'ShowSignature'};
                 }
             }
         } else {
             // wysiwyg
             $this->wysiwygEditorMode = WYSIWYG_EDITOR_MODE;
             $this->wysiwygEditorHeight = WYSIWYG_EDITOR_HEIGHT;
             // options
             $this->parseURL = MESSAGE_FORM_DEFAULT_PARSE_URL;
             $this->enableSmilies = MESSAGE_FORM_DEFAULT_ENABLE_SMILIES;
             $this->enableHtml = MESSAGE_FORM_DEFAULT_ENABLE_HTML;
             $this->enableBBCodes = MESSAGE_FORM_DEFAULT_ENABLE_BBCODES;
         }
     }
     $this->smileyCategories = WCF::getCache()->get('smileys', 'categories');
     $smileys = WCF::getCache()->get('smileys', 'smileys');
     $this->defaultSmileys = isset($smileys[0]) ? $smileys[0] : array();
     $this->wysiwygBBCodes = WCF::getCache()->get('bbcodes', 'all');
 }
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     if (!count($_POST)) {
         // set current date
         $this->untilDay = intval(DateUtil::formatDate('%d', null, false, true));
         $this->untilMonth = intval(DateUtil::formatDate('%m', null, false, true));
         $this->untilYear = intval(DateUtil::formatDate('%Y', null, false, true));
     }
     $this->availableTypes = SearchEngine::getSearchTypes();
 }