Example #1
0
 /**
  * @see	\wcf\page\IPage::readData()
  */
 public function readData()
 {
     parent::readData();
     if (empty($_POST)) {
         $this->title = $this->content->getTitle();
         I18nHandler::getInstance()->setOptions('title', PACKAGE_ID, $this->content->title, 'cms.content.title\\d+');
         $this->pageID = $this->content->pageID;
         $this->cssClasses = $this->content->cssClasses;
         $this->parentID = $this->content->parentID;
         $this->showOrder = $this->content->showOrder;
         $this->position = $this->content->position;
         $this->contentData = $this->content->contentData;
         if ($this->objectType->objectType == 'de.codequake.cms.content.type.poll') {
             PollManager::getInstance()->setObject('de.codequake.cms.content', $this->content->contentID, $this->contentData['pollID']);
         }
         foreach ($this->objectType->getProcessor()->multilingualFields as $field) {
             I18nHandler::getInstance()->setOptions($field, PACKAGE_ID, $this->contentData[$field], 'cms.content.' . $field . '\\d+');
         }
     }
     // overwrite content list
     $this->contentList = new DrainedPositionContentNodeTree(null, $this->pageID, $this->contentID, $this->position);
     $this->contentList = $this->contentList->getIterator();
 }