// TODO (as of Chamilo 1.8.8): Check in the future whether this field is needed. $learnPath->set_encoding($_REQUEST['lp_encoding']); if (isset($_REQUEST['lp_maker'])) { $learnPath->set_maker($_REQUEST['lp_maker']); } if (isset($_REQUEST['lp_proximity'])) { $learnPath->set_proximity($_REQUEST['lp_proximity']); } $learnPath->set_theme($_REQUEST['lp_theme']); if (isset($_REQUEST['hide_toc_frame']) && $_REQUEST['hide_toc_frame'] == 1) { $hide_toc_frame = $_REQUEST['hide_toc_frame']; } else { $hide_toc_frame = null; } $learnPath->set_hide_toc_frame($hide_toc_frame); $learnPath->set_prerequisite($_REQUEST['prerequisites']); $learnPath->set_use_max_score($_REQUEST['use_max_score']); $subscribers = isset($_REQUEST['subscribe_users']) ? $_REQUEST['subscribe_users'] : ''; $learnPath->setSubscribeUsers($subscribers); if (isset($_REQUEST['activate_start_date_check']) && $_REQUEST['activate_start_date_check'] == 1) { $publicated_on = $_REQUEST['publicated_on']; } else { $publicated_on = null; } if (isset($_REQUEST['activate_end_date_check']) && $_REQUEST['activate_end_date_check'] == 1) { $expired_on = $_REQUEST['expired_on']; } else { $expired_on = null; } $learnPath->setCategoryId($_REQUEST['category_id']); $learnPath->set_modified_on();