public function saveThreadSortingObject() { $_POST['thread_sorting'] ? $thread_sorting = $_POST['thread_sorting'] : ($thread_sorting = array()); foreach ($thread_sorting as $thr_pk => $sorting_value) { $sorting_value = str_replace(',', '.', $sorting_value); $sorting_value = (double) $sorting_value * 100; $this->object->setThreadSorting($thr_pk, $sorting_value); } ilUtil::sendSuccess($this->lng->txt('saved_successfully')); $this->showThreadsObject(); return true; }