Beispiel #1
0
 protected function getEditFormCustomValues(array &$a_values)
 {
     $a_values["desc"] = $this->object->getLongDescription();
     $a_values['default_view'] = $this->objProperties->getDefaultView();
     $a_values['anonymized'] = $this->objProperties->isAnonymized();
     $a_values['statistics_enabled'] = $this->objProperties->isStatisticEnabled();
     $a_values['post_activation'] = $this->objProperties->isPostActivationEnabled();
     $a_values['subject_setting'] = $this->objProperties->getSubjectSetting();
     $a_values['mark_mod_posts'] = $this->objProperties->getMarkModeratorPosts();
     $a_values['thread_sorting'] = $this->objProperties->getThreadSorting();
     $a_values['thread_rating'] = $this->objProperties->isIsThreadRatingEnabled();
     $default_view = in_array((int) $this->objProperties->getDefaultView(), array(ilForumProperties::VIEW_DATE_ASC, ilForumProperties::VIEW_DATE_DESC)) ? ilForumProperties::VIEW_DATE : ilForumProperties::VIEW_TREE;
     $a_values['default_view'] = $default_view;
     $default_view_sort_dir = (int) $this->objProperties->getDefaultView() != (int) ilForumProperties::VIEW_TREE ? (int) $this->objProperties->getDefaultView() : ilForumProperties::VIEW_DATE_ASC;
     $a_values['default_view_sort_dir'] = $default_view_sort_dir;
 }