• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP leap_mysqldate函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中leap_mysqldate函数的典型用法代码示例。如果您正苦于以下问题:PHP leap_mysqldate函数的具体用法?PHP leap_mysqldate怎么用?PHP leap_mysqldate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了leap_mysqldate函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: log

 public static function log($str)
 {
     $n = new LangModel();
     $n->lang_id = $str;
     $n->lang_ts = leap_mysqldate();
     $n->save();
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:7,代码来源:LangModel.php


示例2: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $resto = new MasterRestaurantModel();
     $res = $resto->getAll();
     foreach ($res as $value) {
         $arrHelp[$value->id_restaurant] = $value->name;
     }
     $return['id_restaurant'] = new Leap\View\InputSelect($arrHelp, "id_restaurant", "id_restaurant", $this->id_restaurant);
     $bank = new BankModel();
     $arrBank = $bank->getAll();
     foreach ($arrBank as $value) {
         $arrHelpBank[$value->id_bank] = $value->bank_name;
     }
     $return['id_bank'] = new Leap\View\InputSelect($arrHelpBank, "id_bank", "id_bank", $this->id_bank);
     if (!isset($this->start)) {
         $dt = leap_mysqldate();
     } else {
         $dt = $this->start;
     }
     $return['start'] = new \Leap\View\InputText("date", "start", "start", $dt);
     if (!isset($this->end)) {
         $dt = leap_mysqldate();
     } else {
         $dt = $this->end;
     }
     $return['end'] = new \Leap\View\InputText("date", "end", "end", $dt);
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:29,代码来源:BankDiscountModel.php


示例3: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $resto = new MasterRestaurantModel();
     $res = $resto->getAll();
     foreach ($res as $value) {
         $arrHelp[$value->id_restaurant] = $value->name;
     }
     $return['id_restaurant'] = new Leap\View\InputSelect($arrHelp, "id_restaurant", "id_restaurant", $this->id_restaurant);
     $bank = new BankModel();
     $return['end_mr_fee'] = new \Leap\View\InputText("date", "end_mr_fee", "end_mr_fee", $dt);
     $return['fee'] = new Leap\View\InputTextRightAddOn("text", "fee", "fee", " % ", $this->fee);
     $return['mr_fee_select'] = new Leap\View\InputRadioButtonHideWhen(array(1 => "Yes", 0 => "No"), "mr_fee_select", "mr_fee_select", $this->mr_fee_select, array(1 => "formgroup_start_mr_fee,formgroup_end_mr_fee", 0 => "formgroup_start_mr_fee,formgroup_end_mr_fee"));
     if ($this->mr_fee_select == 0) {
         if (!isset($this->start_mr_fee)) {
             $dt = leap_mysqldate();
         } else {
             $dt = $this->start_mr_fee;
         }
         $return['start_mr_fee'] = new \Leap\View\InputText("date", "start_mr_fee", "start_mr_fee", $dt);
         if (!isset($this->end_mr_fee)) {
             $dta = leap_mysqldate();
         } else {
             $dta = $this->end_mr_fee;
         }
         $return['end_mr_fee'] = new \Leap\View\InputText("date", "end_mr_fee", "end_mr_fee", $dta);
     } else {
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:30,代码来源:MRFeeModel.php


示例4: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['topic_author'] = new Leap\View\InputText("hidden", "topic_author", "topic_author", Account::getMyID());
     if ($_GET['load']) {
         $return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", $this->topic_date);
     } else {
         $return['topic_date'] = new Leap\View\InputText("hidden", "topic_date", "topic_date", leap_mysqldate());
     }
     $return['topic_msg'] = new Leap\View\InputTextRTE("topic_msg", "topic_msg", $this->topic_msg);
     $return['topic_status'] = new Leap\View\InputSelect(array("draft" => "Draft", "publish" => "Publish"), "topic_status", "topic_status", $this->topic_status);
     $return['topic_modified'] = new Leap\View\InputText("hidden", "topic_modified", "topic_modified", leap_mysqldate());
     $return['topic_image'] = new \Leap\View\InputFoto("topic_image", "topic_image", $this->topic_image);
     $return['topic_fb_og_image'] = new \Leap\View\InputFoto("topic_fb_og_image", "topic_fb_og_image", $this->topic_fb_og_image);
     $return['topic_category'] = new \Leap\View\InputTag("BlogBE/prefetchBlogCat", "topic_category", "topic_category", $this->topic_category);
     //        $return['spdivider']['post_image']  = "Content";
     $return['spdivider']['topic_meta_title'] = "SEO";
     $return['spdivider']['topic_fb_og_title'] = "FB OpenGraph";
     $return['spdivider']['topic_attachments'] = "Attachments";
     $return['topic_attachments'] = new Leap\View\InputPageAttachment("topic_attachments", "topic_attachments", $this->topic_attachments);
     if ($this->topic_attachment_order == "") {
         $this->topic_attachment_order = Efiwebsetting::getData('PageAttachment');
     }
     $return['topic_attachment_order'] = new Leap\View\InputOrdering("topic_attachment_order", "topic_attachment_order", $this->topic_attachment_order);
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:26,代码来源:BlogModel.php


示例5: saveSLog

 static function saveSLog($word)
 {
     $sl = new MSearchLog();
     $sl->slog_keyword = $word;
     $sl->slog_date = leap_mysqldate();
     $sl->save();
 }
开发者ID:CapsuleCorpIndonesia,项目名称:es-teler-baru-suka,代码行数:7,代码来源:MSearchLog.php


示例6: moveStock

 public static function moveStock($prod_id, $jumlah, $minus = 1, $note = "", $po_id = 0)
 {
     $prod = new ProdModel();
     $prod->getByID($prod_id);
     //isi log
     $ps = new ProdStok();
     $ps->stok_date = leap_mysqldate();
     $ps->stok_prev = $prod->prod_stock;
     $ps->stok_po_id = $po_id;
     $ps->stok_prod_id = $prod->prod_id;
     $ps->stok_userid = Account::getMyID();
     if ($minus) {
         //kurangi stok
         $prod->prod_stock -= $jumlah;
     } else {
         //kurangi stok
         $prod->prod_stock += $jumlah;
     }
     $prod->load = 1;
     $prod->save();
     if (Role::hasRole('admin')) {
         $ps->stock_admin = 1;
     }
     $ps->stock_note = $note;
     $ps->stok_actual = $prod->prod_stock;
     if ($ps->stok_prev > $ps->stok_actual) {
         $ps->stok_debit_credit = 1;
     } else {
         $ps->stok_debit_credit = 0;
     }
     return $ps->save();
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:32,代码来源:ProdStok.php


示例7: simpan

 static function simpan($varID, $type)
 {
     $mp = new MProdLog();
     $mp->plog_date = leap_mysqldate();
     $mp->plog_variantID = $varID;
     $mp->plog_type = $type;
     $mp->save();
 }
开发者ID:CapsuleCorpIndonesia,项目名称:es-teler-baru-suka,代码行数:8,代码来源:MProdLog.php


示例8: sendReplyMsg

 function sendReplyMsg()
 {
     $json['bool'] = 0;
     $json['err'] = "ok";
     //$accid = addslashes($_POST['acc_id']);
     $inboxid = addslashes($_POST['inboxid']);
     $isi = addslashes($_POST['isi']);
     // $emai = addslashes($_POST['emai']);
     /* if ($accid == "") {
            $json['err'] = Lang::t('lang_id_empty');
        }*/
     if ($inboxid == "") {
         $json['err'] = Lang::t('lang_inbox_id_empty');
     }
     if ($isi == "") {
         $json['err'] = Lang::t('lang_isi_empty');
     }
     if ($json['err'] == "ok") {
         $in = new ChatMsg();
         //$tgl = date("Y-m-d H:i:s");
         $in->chat_group_id = $inboxid;
         //$in->inbox_to = $accid;
         $in->inbox_from = Account::getMyID();
         $in->inbox_msg = $isi;
         $in->inbox_createdate = leap_mysqldate();
         if ($in->save()) {
             //update inbox
             $inbox = new ChatGroup();
             $inbox->getByID($inboxid);
             $inbox->inbox_changedate = leap_mysqldate();
             $inbox->inbox_anzahlreply++;
             $inbox->load = 1;
             //ini hrs di foreach untuk semua member
             $m = new ChatMember();
             $arrMember = $m->getWhere("chat_group_id = '{$inboxid}'");
             foreach ($arrMember as $mem) {
                 $accid = $mem->chat_member_id;
                 if ($accid == Account::getMyID()) {
                     continue;
                 }
                 $inbox->addInboxNotifPortal($accid, $inboxid);
                 //cek read didalamnya
             }
             if ($inbox->inbox_read) {
                 //update Notif
                 $inbox->inbox_read = 0;
             }
             //$inbox->inbox_giliran_read = $accid;
             $inbox->save();
             $json['bool'] = 1;
         } else {
             $json['err'] = Lang::t('lang_failed');
         }
     }
     echo json_encode($json);
     exit;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:57,代码来源:ChatMsgWeb.php


示例9: savelog

 static function savelog($camp_id, $device_id, $acc_id, $status, $log_text, $log_multicast_id)
 {
     $nl = new PushLogger();
     $nl->log_camp_id = $camp_id;
     $nl->log_device_id = $device_id;
     $nl->log_macc_id = $acc_id;
     $nl->log_status = $status;
     $nl->log_text = $log_text;
     $nl->log_multicast_id = $log_multicast_id;
     $nl->log_date = leap_mysqldate();
     return $nl->save();
 }
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:12,代码来源:PushLogger.php


示例10: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     if (!isset($this->datetime_order)) {
         $dt = leap_mysqldate();
     } else {
         $dt = $this->datetime_order;
     }
     $return['datetime_order'] = new \Leap\View\InputText("date", "datetime_order", "datetime_order", $dt);
     foreach ($return as $key => $val) {
         $return[$key]->setReadOnly();
     }
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:14,代码来源:OrderDetailModel.php


示例11: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['carousel_photo'] = new \Leap\View\InputFoto("foto", "carousel_photo", $this->carousel_photo);
     $return['carousel_active'] = new Leap\View\InputSelect($this->arrayYesNO, "carousel_active", "carousel_active", $this->carousel_active);
     if (!isset($this->carousel_postdate)) {
         $dt = leap_mysqldate();
     } else {
         $dt = $this->carousel_postdate;
     }
     $return['carousel_postdate'] = new \Leap\View\InputText("date", "carousel_postdate", "carousel_postdate", $dt);
     $return['carousel_start'] = new \Leap\View\InputText("date", "carousel_start", "carousel_start", $this->carousel_start);
     $return['carousel_end'] = new \Leap\View\InputText("date", "carousel_end", "carousel_end", $this->carousel_end);
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:15,代码来源:CarouselMobile.php


示例12: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['prog_content'] = new \Leap\View\InputTextRTE("prog_content", "prog_content", $this->prog_content);
     $return['prog_pic'] = new \Leap\View\InputFoto("foto", "prog_pic", $this->prog_pic);
     $return['prog_active'] = new Leap\View\InputSelect($this->arrayYesNO, "prog_active", "prog_active", $this->prog_active);
     if (!isset($this->prog_date_created)) {
         $dt = leap_mysqldate();
     } else {
         $dt = $this->prog_date_created;
     }
     $return['prog_date_created'] = new \Leap\View\InputText("date", "prog_date_created", "prog_date_created", $dt);
     $return['prog_date_start'] = new \Leap\View\InputText("date", "prog_date_start", "prog_date_start", $this->prog_date_start);
     $return['prog_date_end'] = new \Leap\View\InputText("date", "prog_date_end", "prog_date_end", $this->prog_date_end);
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:16,代码来源:LL_Program.php


示例13: sendEmail

 public function sendEmail($to, $arrReplace)
 {
     $this->setVar($arrReplace);
     $this->addTable();
     $lep = new Leapmail2();
     $hasil = $lep->sendHTMLEmail($to, $this->email_subject, $this->email_template_text, $this->email_template_html);
     $suc = $hasil->success();
     //should we log this ?
     $ml = new EmailLog();
     $ml->log_date = leap_mysqldate();
     $ml->log_email_id = $to;
     $ml->log_status = $suc;
     $ml->log_template = $this->email_id;
     $ml->save();
     return $suc;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:16,代码来源:EmailModel.php


示例14: constraints

 public function constraints()
 {
     $err = array();
     if (!isset($this->session_id)) {
         $err['session_id'] = Lang::t('session_id');
     }
     if (!isset($this->variant_id)) {
         $err['variant_id'] = Lang::t('variant_id');
     }
     if (!isset($this->qty)) {
         $err['qty'] = Lang::t('qty');
     }
     $this->date_created = leap_mysqldate();
     $this->status = 1;
     return $err;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:es-teler-baru-suka,代码行数:16,代码来源:CartPortal.php


示例15: requestCashOut

 public function requestCashOut()
 {
     if (Efiwebsetting::getData('checkOAuth') == 'yes') {
         IMBAuth::checkOAuth();
     }
     $idResto = Generic::mustCheck($_GET['id_restaurant'], "No ID Restaurant Found");
     $amount = Generic::mustCheck($_GET['amount'], "No Amount Found");
     if ($amount == "0") {
         Generic::errorMsg("Zero Amount not Allowed");
     }
     $bankAcc = new RestoBankAccModel();
     $arrBank = $bankAcc->getWhere("id_restaurant='{$idResto}'");
     if (count($arrBank) <= 0) {
         Generic::errorMsg("You Have Not Set Your Cash Out Account");
     }
     $req = new MasterCashOutRequestModel();
     $arrReq = $req->getWhere("id_restaurant='{$idResto}' AND status='0'");
     if (count($arrReq) > 0) {
         Generic::errorMsg("You Already Request Cash Out");
     }
     $resto = new MasterRestaurantModel();
     $resto->getByID($idResto);
     $cashOut = new MasterCashOutRequestModel();
     $cashOut->id_restaurant = $idResto;
     $cashOut->datetime_request = leap_mysqldate();
     $cashOut->amount = $amount;
     $cashOut->status = 0;
     $idNewRequest = $cashOut->save();
     $tr = new MasterRestoTransactionModel();
     $tr->id_request = $idNewRequest;
     $tr->id_restaurant = $idResto;
     $tr->gross_amount = (double) $amount * -1;
     $tr->net_amount = (double) $amount * -1;
     $tr->approved = "0";
     $tr->type_transaction = "2";
     $tr->datetime_transaction = leap_mysqldate();
     $tr->mr_fee = 0;
     $tr->credit_card_fee = 0;
     $tr->other_fee = 0;
     $tr->bank_disc = 0;
     $tr->save();
     $json['status_code'] = 1;
     $json['results']['messages'] = "success";
     echo json_encode($json);
     die;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:martabak_revolution,代码行数:46,代码来源:MasterCashOutRequest.php


示例16: viewed

 function viewed()
 {
     $app_id = addslashes($_POST['app_id']);
     $key = addslashes($_POST['key']);
     $app = new AppAccount();
     if ($app_id == "" || $key == "") {
         $json['status_code'] = 0;
         echo json_encode($json);
         die;
     } else {
         $app->getByID($app_id);
         if ($app->app_token != $key) {
             $json['status_code'] = 0;
             $json['status_message'] = "wrong key";
             echo json_encode($json);
             die;
         }
     }
     $client_camp_id = addslashes($_POST['camp_id']);
     $device_id = addslashes($_POST['device_id']);
     $dl = new PushLogger();
     global $db;
     $q = "UPDATE {$dl->table_name} SET log_seen = 1, log_seen_date = '" . leap_mysqldate() . "' WHERE log_app_id = '{$app_id}' AND log_device_id = '{$device_id}' AND log_client_id = '{$client_camp_id}' ";
     //        echo $q;
     $db->query($q, 0);
     $gcm = new GCMResult();
     $arr = $gcm->getWhere("client_camp_id = '{$client_camp_id}' AND app_id = '{$app_id}' LIMIT 0,1");
     $total = 0;
     foreach ($arr as $up) {
         $q = "SELECT count(*) AS nr FROM {$dl->table_name} WHERE log_camp_id = '{$up->camp_id}' AND log_seen = 1";
         $nr = $db->query($q, 1);
         $total += $nr->nr;
         //get GCM and Update
         $up->seen_by = $nr->nr;
         $up->load = 1;
         $up->save();
     }
     $json['status_code'] = 1;
     $json['status_message'] = "Success";
     $json['total_dilihat'] = $total;
     echo json_encode($json);
     die;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:43,代码来源:PushLoggerWeb.php


示例17: save_device

 public static function save_device()
 {
     $device_id = addslashes($_POST['device_id']);
     $type = addslashes($_POST['type']);
     //completion check
     if ($device_id == "" || $type == "") {
         $json['status_code'] = 0;
         $json['status_message'] = "Incomplete Request";
         echo json_encode($json);
         die;
     }
     IMBAuth::checkOAuth();
     //check account..
     $acc = isset($_POST['acc_id']) ? addslashes($_POST['acc_id']) : 0;
     $dn = new DeviceModelAgentApp();
     $dnquery = new DeviceModelAgentApp();
     // langkah 1 , device ID ada device type ada
     $arrs = $dnquery->getWhere("device_id = '{$device_id}' AND device_type = '{$type}'");
     $dn = $arrs[0];
     if ($dn->did == "") {
         $dn = new DeviceModelAgentApp();
         $dn->device_id = $device_id;
         $dn->device_type = $type;
         $dn->acc_id = $acc;
         $dn->firstlogin = leap_mysqldate();
     } else {
         //kalau device id ada, acc di update
         $dn->load = 1;
         $dn->acc_id = $acc;
     }
     $dn->dev_lng = addslashes($_REQUEST['lng']);
     $dn->dev_lat = addslashes($_REQUEST['lat']);
     $dn->logindate = leap_mysqldate();
     if ($dn->save()) {
         $json['save_status'] = 1;
     } else {
         $json['save_status'] = 0;
     }
     $json['status_code'] = 1;
     echo json_encode($json);
     die;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:apel-enak,代码行数:42,代码来源:PushAgentUtil.php


示例18: constraints

 public function constraints()
 {
     //err id => err msg
     $err = array();
     if (!isset($this->testi_acc_id)) {
         $err['testi_acc_id'] = Lang::t('LL Account cannot be empty');
     }
     if (!isset($this->testi_text)) {
         $err['testi_text'] = Lang::t('Please provide Text');
     }
     if (!isset($this->testi_createdate)) {
         $this->testi_createdate = leap_mysqldate();
         // $this->testi_date = leap_mysqldate();
     }
     if (!isset($this->testi_date)) {
         // $this->testi_createdate = leap_mysqldate();
         $this->testi_date = leap_mysqldate();
     }
     return $err;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:elang-combo,代码行数:20,代码来源:LL_Testimonial.php


示例19: overwriteForm

 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $p = new BrandModel();
     $arrPage = $p->getAll();
     $arrNe = array();
     foreach ($arrPage as $pp) {
         $arrNe[$pp->brand_id] = $pp->brand_id . " - " . $pp->brand_name;
     }
     $return['prod_diskon'] = new Leap\View\InputText("number", "prod_diskon", "prod_diskon", $this->prod_diskon);
     $return['prod_price'] = new Leap\View\InputText("number", "prod_price", "prod_price", $this->prod_price);
     $return['prod_stock'] = new Leap\View\InputText("hidden", "prod_stock", "prod_stock", $this->prod_stock);
     $return['prod_date'] = new Leap\View\InputText("hidden", "prod_date", "prod_date", leap_mysqldate());
     $return['prod_pic'] = new Leap\View\InputGallery("prod_pic", "prod_pic", $this->prod_pic);
     $return['prod_active'] = new Leap\View\InputSelect($this->arrayYesNO, "prod_active", "prod_active", $this->prod_active);
     // $return['news_text'] = new Leap\View\InputTextArea("news_text", "news_text", $this->news_text);
     $return['prod_des'] = new Leap\View\InputTextRTE("prod_des", "prod_des", $this->prod_des);
     $return['prod_brand_id'] = new Leap\View\InputSelect($arrNe, "prod_brand_id", "prod_brand_id", $this->prod_brand_id);
     $return['prod_status'] = new Leap\View\InputText("hidden", "prod_status", "prod_status", $this->prod_status);
     $return['prod_story'] = new Leap\View\InputText("hidden", "prod_story", "prod_story", $this->prod_story);
     $p = new ProdCat();
     $arrPage = $p->getAll();
     $arrNe = array();
     foreach ($arrPage as $pp) {
         $arrNe[$pp->cat_id] = $pp->cat_id . " - " . $pp->cat_name;
     }
     $return['prod_cat_id'] = new Leap\View\InputSelect($arrNe, "prod_cat_id", "prod_cat_id", $this->prod_cat_id);
     $return['prod_material'] = new Leap\View\InputText("hidden", "prod_material", "prod_material", $this->prod_material);
     $return['prod_size'] = new Leap\View\InputText("hidden", "prod_size", "prod_size", $this->prod_size);
     $return['prod_color'] = new Leap\View\InputText("hidden", "prod_color", "prod_color", $this->prod_color);
     $return['prod_collection_name'] = new Leap\View\InputText("hidden", "prod_collection_name", "prod_collection_name", $this->prod_collection_name);
     //        return $return;
     //        $return  = parent::overwriteForm($return, $returnfull);
     $return['product_fb_og_image'] = new \Leap\View\InputFoto("product_fb_og_image", "product_fb_og_image", $this->product_fb_og_image);
     $return['spdivider']['prod_name'] = "Product Details";
     $return['spdivider']['product_metatitle'] = "SEO";
     $return['spdivider']['product_fb_og_title'] = "FB OpenGraph";
     //        $return['spdivider']['post_attachments']  = "Attachments";
     //        $return['post_attachments'] = new Leap\View\InputPageAttachment("post_attachments","post_attachments",$this->post_attachments);
     return $return;
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:41,代码来源:ProdModel.php


示例20: saveUnsaved

 public function saveUnsaved()
 {
     $arrPoint = $_SESSION['game']['unsaved'];
     foreach ($arrPoint as $p) {
         $ps = new QuizPoints();
         $pid = $p[0] . "_" . Account::getMyID();
         $ps->getByID($pid);
         if ($ps->points_id == "") {
             $ps->load = 0;
         }
         $ps->points_id = $pid;
         $ps->points_ul_id = $p[0];
         $ps->points_acc_id = Account::getMyID();
         if ($ps->points_nilai < $p[1]) {
             $ps->points_nilai = $p[1];
         }
         //$ps->points_nilai = $p[1];
         $ps->points_update = leap_mysqldate();
         $ps->save();
     }
 }
开发者ID:CapsuleCorpIndonesia,项目名称:biji_katak,代码行数:21,代码来源:QuizPoints.php



注:本文中的leap_mysqldate函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP learn_press_enqueue_script函数代码示例发布时间:2022-05-15
下一篇:
PHP leading_zero函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap