本文整理汇总了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 -----------------------------------------//
示例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