コード例 #1
0
 /**
  * @see	\wcf\system\option\IOptionHandler::readData()
  */
 public function readData()
 {
     $defaultGroup = UserGroup::getGroupByType(UserGroup::EVERYONE);
     foreach ($this->options as $option) {
         $this->optionValues[$option->optionName] = $defaultGroup->getGroupOption($option->optionName);
         // use group values over default values
         if ($this->group !== null) {
             $groupValue = $this->group->getGroupOption($option->optionName);
             if ($groupValue !== null) {
                 $this->optionValues[$option->optionName] = $groupValue;
             }
         }
     }
 }