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


PHP Organization::getUniqueCode方法代碼示例

本文整理匯總了PHP中Organization::getUniqueCode方法的典型用法代碼示例。如果您正苦於以下問題:PHP Organization::getUniqueCode方法的具體用法?PHP Organization::getUniqueCode怎麽用?PHP Organization::getUniqueCode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Organization的用法示例。


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

示例1: calcGTzTime

 $udata['eUserType'] = $_POST['eUserType'];
 $udata['vAddressLine1'] = $_POST['vAddressLine1'];
 $udata['vAddressLine2'] = $_POST['vAddressLine2'];
 $udata['vAddressLine3'] = $_POST['vAddressLine3'];
 $udata['vCity'] = $_POST['vCity'];
 $udata['vCountry'] = $_POST['vCountry'];
 $udata['vState'] = $_POST['vState'];
 $udata['vZipcode'] = $_POST['vZipcode'];
 $udata['vPhone'] = $odata['vPhone'];
 $udata['eUserType'] = 'Admin';
 $udata['eSelfReg'] = 'Yes';
 // $udata['vActivationCode'] = $activationcode;
 $udata['dCreatedDate'] = $udata['dModifiedDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s');
 $udata['eStatus'] = 'Need to Verify';
 // pr($_POST);
 $odata['vOrganizationCode'] = $orgObj->getUniqueCode($odata['eOrganizationType']);
 // pr($odata);
 $oid = $res = $orgObj->insert($odata);
 if ($oid > 0) {
     $odata['iOrganizationID'] = $oid;
     $res = $orgvrfObj->insert($odata);
     //
     $udata['iOrganizationID'] = $oid;
     $uid = $orgUsrObj->insert($udata);
     if ($uid > 0) {
         $udata['iUserID'] = $uid;
         $iVerifiedID = $userToVerifyObj->insert($udata);
     }
     // echo $uid; exit;
     // org default preferences
     //------------------------DEFALT VALUES OF PURCHASE ORDER -----------------------------------------//
開發者ID:nstungxd,項目名稱:F2CA5,代碼行數:31,代碼來源:orgregister.php

示例2: header

 if ($resArr || $vNum || $vmail == 'er' || $alphanum == 'er') {
     $_SESSION['Data'] = $Data;
     header("Location:" . $_SERVER['HTTP_REFERER'] . "");
     exit;
 }
 if ($DupEmail == 'er') {
     $dupl = 'dpl';
 }
 ### ENDS HERE ###
 $bnkdt = $bnkObj->getDetails('*', " AND iBankId=" . $Data['iBankId']);
 $Data['vBankName'] = $bnkdt[0]['vBankName'];
 $Data['iASMID'] = PostVar("iASMID");
 $Data['dCreatedDate'] = calcGTzTime(date('Y-m-d H:i:s'), 'Y-m-d H:i:s');
 $Data['dCreateFromIP'] = $_SERVER['REMOTE_ADDR'];
 // $vOrganizationCode = $generalobj->UniqueID("ORG",PRJ_DB_PREFIX."_organization_master","vOrganizationCode",$charlimit="10");
 $vOrganizationCode = $orgObj->getUniqueCode($Data['eOrganizationType']);
 // echo $vOrganizationCode; exit;
 $code = $Data['vOrganizationCode'] = $vOrganizationCode;
 //	  $vCompanyRegNo = $generalobj->UniqueID("",PRJ_DB_PREFIX."_organization_master","vCompanyRegNo",$charlimit="10");
 $regno = $Data['vCompanyRegNo'];
 // = $vCompanyRegNo;
 $compcode = $Data['vCompCode'];
 // if(count($arr)>0) {
 $Data['eStatus'] = "Need to Verify";
 /*} else {
 	 $Data['eStatus'] = "Active";
   }*/
 // prints($Data);exit;
 $orgObj->setAllVar($Data);
 $iOrganizationID = $res = $orgObj->insert();
 //INSERT THIS RECORD IN ORGANIZATION_MASTER_TOVERIFY TABLE
開發者ID:nstungxd,項目名稱:F2CA5,代碼行數:31,代碼來源:createorganization_a.php


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