public static function setData($id, $val, $begin, $end, $active = 1)
 {
     self::setDataSementara($id, $val);
     $ef = new LLSetting();
     $ef->ll_set_id = $id;
     $ef->ll_set_value = $val;
     $ef->ll_set_date_begin = $begin;
     $ef->ll_set_date_end = $end;
     $ef->ll_set_active = $active;
     return $ef->save();
 }
 public function getLLSetting()
 {
     //        $json['status_code'] = 1;
     //        $prod_id = addslashes($_GET['prod_id']);
     //        if(!$prod_id){
     //            $json['status_code'] = 0;
     //            $json['status_message'] = "No ID Found";
     //            echo json_encode($json);
     //            die();
     //        }
     $ll = new LLSetting();
     $ll->loadToSession();
     //        pr($_SESSION['LLSetting']);
     $json = $_SESSION['LLSetting'];
     $json['status_code'] = 1;
     echo json_encode($json);
     die;
 }