/**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     foreach ($this->activeOptions as $name => $option) {
         if (isset($this->values[$name])) {
             $this->activeOptions[$name]['optionValue'] = $this->values[$name];
         }
     }
     $this->options = $this->getCategoryOptions('profile');
 }
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     UserOptionListForm::readData();
     if (!count($_POST)) {
         // get visible languages
         $this->readVisibleLanguages();
         // default values
         $this->readDefaultValues();
     }
     // add icon path
     $this->categoryData = $this->cachedCategories[$this->activeCategory];
     if (!empty($this->categoryData['categoryIconM'])) {
         // get relative path
         $path = '';
         if (empty($this->categoryData['packageDir'])) {
             $path = RELATIVE_WCF_DIR;
         } else {
             $path = FileUtil::getRealPath(RELATIVE_WCF_DIR . $this->categoryData['packageDir']);
         }
         $this->categoryData['categoryIconM'] = $path . $this->categoryData['categoryIconM'];
     }
     // get path to category icons
     foreach ($this->cachedCategories as $key => $category) {
         // add icon path
         if (!empty($category['categoryIconM'])) {
             // get relative path
             $path = '';
             if (empty($category['packageDir'])) {
                 $path = RELATIVE_WCF_DIR;
             } else {
                 $path = FileUtil::getRealPath(RELATIVE_WCF_DIR . $category['packageDir']);
             }
             $this->cachedCategories[$key]['categoryIconM'] = $path . $category['categoryIconM'];
         }
     }
     // get categories
     $this->options = $this->getOptionTree($this->activeCategory);
     if (count($this->options) == 0) {
         $this->pageOptions = $this->getCategoryOptions($this->activeCategory);
     }
 }
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     if (!count($_POST)) {
         if (MAIL_USE_FORMATTED_ADDRESS) {
             $this->from = MAIL_FROM_NAME . ' <' . MAIL_FROM_ADDRESS . '>';
         } else {
             $this->from = MAIL_FROM_ADDRESS;
         }
     }
     $this->availableGroups = $this->getAvailableGroups();
     $this->availableLanguages = $this->getAvailableLanguages();
     foreach ($this->activeOptions as $name => $option) {
         if (isset($this->values[$name])) {
             $this->activeOptions[$name]['optionValue'] = $this->values[$name];
         }
     }
     $this->options = $this->getCategoryOptions('profile');
 }
Пример #4
0
 /**
  * @see Page::readData()
  */
 public function readData()
 {
     parent::readData();
     $this->options = $this->getOptionTree();
 }