当前位置: 首页>>代码示例>>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;未经允许,请勿转载。