/** * Creates a new model. * If creation is successful, the browser will be redirected to the 'view' page. */ public function actionCreate() { $model = new Kurikulum(); // Uncomment the following line if AJAX validation is needed // $this->performAjaxValidation($model); if (isset($_POST['Kurikulum'])) { $model->attributes = $_POST['Kurikulum']; if ($model->save()) { $this->redirect(array('view', 'id' => $model->kurikulum)); } } $this->render('create', array('model' => $model)); }
/** * @param int * @param string * @param string * @param string * @param string * @param string * @param string * @param int * @param int * @param int * @param int * @param string * @param string * @param string * @param string * @param int * @param int * @param int * @param int * @param int * @param int * @param string * @param int * @param int * @param int * @param int * @param int * @param int * @param int * @param int * @param string * @param string * @param string * @param string * @param string * @param int * @param int * @param string * @param string * @param string * @param string * @param string * @param string * @param string * @param string * @param string * @soap */ public function insertNewKurikulum($id_kur, $kode_mk, $nama_kul_ind, $nama_kul_ing, $short_name, $kbk_id, $course_group, $sks, $sem, $urut_dlm_sem, $sifat, $key_topics_ind, $key_topics_ing, $objektif_ind, $objektif_ing, $lab_hour, $tutorial_hour, $course_hour, $course_hour_in_week, $lab_hour_in_week, $number_week, $other_activity, $other_activity_hour, $knowledge, $skill, $attitude, $uts, $uas, $tugas, $quiz, $whiteboard, $lcd, $courseware, $lab, $elearning, $status, $last_update, $user_id, $ws, $prerequisites, $course_description, $course_objectives, $learning_outcomes, $course_format, $grading_procedure, $course_content) { $model = new Kurikulum(); $model->ID_KUR = $id_kur; $model->KODE_MK = $kode_mk; $model->NAMA_KUL_IND = $nama_kul_ind; $model->NAMA_KUL_ING = $nama_kul_ing; $model->SHORT_NAME = $short_name; $model->KBK_ID = $kbk_id; $model->COURSE_GROUP = $course_group; $model->SKS = $sks; $model->SEM = $sem; $model->URUT_DLM_SEM = $urut_dlm_sem; $model->SIFAT = $sifat; $model->KEY_TOPICS_IND = $key_topics_ind; $model->KEY_TOPICS_ING = $key_topics_ing; $model->OBJEKTIF_IND = $objektif_ind; $model->OBJEKTIF_ING = $objektif_ing; $model->LAB_HOUR = $lab_hour; $model->TUTORIAL_HOUR = $tutorial_hour; $model->COURSE_HOUR = $course_hour; $model->COURSE_HOUR_IN_WEEK = $course_hour_in_week; $model->LAB_HOUR_IN_WEEK = $lab_hour_in_week; $model->NUMBER_WEEK = $number_week; $model->OTHER_ACTIVITY = $other_activity; $model->OTHER_ACTIVITY_HOUR = $other_activity_hour; $model->KNOWLEDGE = $knowledge; $model->SKILL = $skill; $model->ATTITUDE = $attitude; $model->UTS = $uts; $model->UAS = $uas; $model->TUGAS = $tugas; $model->QUIZ = $quiz; $model->WHITEBOARD = $whiteboard; $model->LCD = $lcd; $model->COURSEWARE = $courseware; $model->LAB = $lab; $model->ELEARNING = $elearning; $model->STATUS = $status; $model->LAST_UPDATE = $last_update; $model->USER_ID = $user_id; $model->WS = $ws; $model->PREREQUISITES = $prerequisites; $model->COURSE_DESCRIPTION = $course_description; $model->COURSE_OBJECTIVES = $course_objectives; $model->LEARNING_OUTCOMES = $learning_outcomes; $model->COURSE_FORMAT = $course_format; $model->GRADING_PROCEDURE = $grading_procedure; $model->COURSE_CONTENT = $course_content; $model->save(); }