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


PHP customer::verify_name_contact方法代碼示例

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


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

示例1:

     log_write("error", "process", "This customer name is already used for another customer - please choose a unique name.");
     $_SESSION["error"]["name_customer-error"] = 1;
 }
 // make sure we don't choose a customer code that has already been taken
 if (!$obj_customer->verify_code_customer()) {
     log_write("error", "process", "This customer code is already used for another customer - please choose a unique code or leave blank for an automatically generated value.");
     $_SESSION["error"]["name_customer-error"] = 1;
 }
 // don't allow a date closed to be set if there are active services belonging to this customer
 if (!$obj_customer->verify_date_end()) {
     log_write("error", "process", "You can not close this customer, as there are still active services on this account");
     $_SESSION["error"]["date_end-error"] = 1;
 }
 //make sure each contact has a name
 for ($i = 0; $i < $num_contacts; $i++) {
     if (!$obj_customer->verify_name_contact($i)) {
         log_write("error", "process", "Each contact must be given a name - please ensure each contact has been assigned a unique name");
         error_flag_field("contact_" . $i);
         log_debug("edit-process", "NO NAME ERROR FLAG: contact_" . $i);
     }
 }
 //make sure each contact name is unique
 for ($i = 0; $i < $num_contacts; $i++) {
     $uniqueness = $obj_customer->verify_uniqueness_contact($i);
     if ($uniqueness != "unique") {
         log_write("error", "process", "You have assigned the same name to two or more contacts - please choose unique names");
         error_flag_field("contact_" . $i);
         error_flag_field("contact_" . $uniqueness);
     }
 }
 // return to input page if any errors occurred
開發者ID:carriercomm,項目名稱:amberdms-bs,代碼行數:31,代碼來源:edit-process.php


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