當前位置: 首頁>>代碼示例>>PHP>>正文


PHP setUpdatedLatLng函數代碼示例

本文整理匯總了PHP中setUpdatedLatLng函數的典型用法代碼示例。如果您正苦於以下問題:PHP setUpdatedLatLng函數的具體用法?PHP setUpdatedLatLng怎麽用?PHP setUpdatedLatLng使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了setUpdatedLatLng函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: prepare_for_db

         $avalues["kelurahan_id"] = prepare_for_db("kelurahan_id", $_SESSION[$sessionPrefix . "_masterkey1"]);
     }
 }
 $failed_inline_add = false;
 //	add filenames to values
 foreach ($afilename_values as $akey => $value) {
     $avalues[$akey] = $value;
 }
 //	before Add event
 $retval = true;
 if ($eventObj->exists("BeforeAdd")) {
     $retval = $eventObj->BeforeAdd($avalues, $usermessage, (bool) $inlineadd, $pageObject);
 }
 if ($retval && $pageObject->isCaptchaOk) {
     //add or set updated lat-lng values for all map fileds with 'UpdateLatLng' ticked
     setUpdatedLatLng($avalues, $pageObject->cipherer->pSet);
     $_SESSION[$strTableName . "_count_captcha"] = $_SESSION[$strTableName . "_count_captcha"] + 1;
     if (DoInsertRecord($strOriginalTableName, $avalues, $blobfields, $id, $pageObject, $pageObject->cipherer)) {
         $IsSaved = true;
         //	after edit event
         if ($auditObj || $eventObj->exists("AfterAdd")) {
             foreach ($keys as $idx => $val) {
                 $avalues[$idx] = $val;
             }
         }
         if ($auditObj) {
             $auditObj->LogAdd($strTableName, $avalues, $keys);
         }
         // Give possibility to all edit controls to clean their data
         //	processing parent - start
         $inlineAddOption = true;
開發者ID:aagusti,項目名稱:padl-tng,代碼行數:31,代碼來源:pad_pad_customer_add.php

示例2: setUpdatedLatLng

         $readevalues = true;
     }
 }
 if ($readevalues == false) {
     //	do event
     $retval = true;
     if ($eventObj->exists("BeforeEdit")) {
         $retval = $eventObj->BeforeEdit($evalues, $strWhereClause, $dataold, $keys, $usermessage, (bool) $inlineedit, $pageObject);
     }
     if ($retval && $pageObject->isCaptchaOk) {
         if ($inlineedit != EDIT_INLINE) {
             $_SESSION[$strTableName . "_count_captcha"] = $_SESSION[$strTableName . "_count_captcha"] + 1;
         }
         //set updated lat-lng values for all map fileds with 'UpdateLatLng' ticked
         if (isTableGeoUpdatable($pageObject->cipherer->pSet)) {
             setUpdatedLatLng($evalues, $pageObject->cipherer->pSet, $dataold);
         }
         if (DoUpdateRecord($strOriginalTableName, $evalues, $blobfields, $strWhereClause, $id, $pageObject, $pageObject->cipherer)) {
             $IsSaved = true;
             // Give possibility to all edit controls to clean their data
             //	processing nama - begin
             $condition = 1;
             if ($condition) {
                 $control_nama->afterSuccessfulSave();
             }
             //	processing nama - end
             //	processing app_id - begin
             $condition = 1;
             if ($condition) {
                 $control_app_id->afterSuccessfulSave();
             }
開發者ID:aagusti,項目名稱:padl-tng,代碼行數:31,代碼來源:app_modules_edit.php


注:本文中的setUpdatedLatLng函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。