当前位置: 首页>>代码示例>>PHP>>正文


PHP Customer::getCustomerId方法代码示例

本文整理汇总了PHP中Customer::getCustomerId方法的典型用法代码示例。如果您正苦于以下问题:PHP Customer::getCustomerId方法的具体用法?PHP Customer::getCustomerId怎么用?PHP Customer::getCustomerId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Customer的用法示例。


在下文中一共展示了Customer::getCustomerId方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: test_accessors

 public function test_accessors()
 {
     /** === Test Data === */
     $COUNTRY_CODE = 'country code';
     $CUSTOMER_ID = 'cust id';
     $DEPTH = 'depth';
     $HUMAN_REF = 'mlm id';
     $PARENT_ID = 'parent id';
     $PATH = 'path';
     $REFERRAL_CODE = 'referral_code';
     /** === Call and asserts  === */
     $this->obj->setCountryCode($COUNTRY_CODE);
     $this->obj->setCustomerId($CUSTOMER_ID);
     $this->obj->setDepth($DEPTH);
     $this->obj->setHumanRef($HUMAN_REF);
     $this->obj->setParentId($PARENT_ID);
     $this->obj->setPath($PATH);
     $this->obj->setReferralCode($REFERRAL_CODE);
     $this->assertEquals($COUNTRY_CODE, $this->obj->getCountryCode());
     $this->assertEquals($CUSTOMER_ID, $this->obj->getCustomerId());
     $this->assertEquals($DEPTH, $this->obj->getDepth());
     $this->assertEquals($HUMAN_REF, $this->obj->getHumanRef());
     $this->assertEquals($PARENT_ID, $this->obj->getParentId());
     $this->assertEquals($PATH, $this->obj->getPath());
     $this->assertEquals($REFERRAL_CODE, $this->obj->getReferralCode());
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_downline,代码行数:26,代码来源:Customer_Test.php

示例2: execute

 /**
  *
  * @param <type> $request
  * @return <type>
  */
 public function execute($request)
 {
     $this->setLayout(false);
     sfConfig::set('sf_web_debug', false);
     sfConfig::set('sf_debug', false);
     if ($this->getRequest()->isXmlHttpRequest()) {
         $this->getResponse()->setHttpHeader('Content-Type', 'application/json; charset=utf-8');
     }
     $customerName = $request->getParameter('customerName');
     $description = $request->getParameter('description');
     $customer = new Customer();
     $customer->setName($customerName);
     $customer->setDescription($description);
     $customer->save();
     $array = array('id' => $customer->getCustomerId());
     return $this->renderText(json_encode($array));
 }
开发者ID:THM068,项目名称:orangehrm,代码行数:22,代码来源:saveCustomerJsonAction.class.php

示例3: execute

 /**
  *
  * @param <type> $request
  * @return <type>
  */
 public function execute($request)
 {
     $this->setLayout(false);
     sfConfig::set('sf_web_debug', false);
     sfConfig::set('sf_debug', false);
     $csrfToken = $request->getParameter('csrfToken');
     $form = new TimesheetFormToImplementCsrfTokens();
     if ($form->getCSRFToken() != $csrfToken) {
         return sfView::NONE;
     }
     if ($this->getRequest()->isXmlHttpRequest()) {
         $this->getResponse()->setHttpHeader('Content-Type', 'application/json; charset=utf-8');
     }
     $customerName = $request->getParameter('customerName');
     $description = $request->getParameter('description');
     $customer = new Customer();
     $customer->setName($customerName);
     $customer->setDescription($description);
     $customer->save();
     $array = array('id' => $customer->getCustomerId());
     return $this->renderText(json_encode($array));
 }
开发者ID:lahirwisada,项目名称:orangehrm,代码行数:27,代码来源:saveCustomerJsonAction.class.php

示例4: array

$domainHash = array($VAR['DOMAIN_NAME'] => $VAR['TERM']);
$nsHash = array($VAR['NS1'] => $VAR['NS2']);
$USERNAME = $VAR['DIRECTI_USERNAME'];
$PASSWORD = $VAR['DIRECTI_PASSWORD'];
$PARENTID = $VAR['DIRECTI_PARENTID'];
$LIB_DIR = "";
$iserror = false;
require_once $LIB_DIR . "domorder.class.php";
require_once $LIB_DIR . "customer.class.php";
require_once $LIB_DIR . "response.class.php";
$DomOrder = new DomOrder($LIB_DIR . "wsdl/domain.wsdl");
// Creating an instance of DomOrder by passing wsdl url.
$Customer = new Customer($LIB_DIR . "wsdl/customer.wsdl");
// Creating an instance of DomOrder by passing wsdl url.
// create/get the accounts id:
$return = $Customer->getCustomerId($USERNAME, $PASSWORD, "reseller", "en", $PARENTID, $VAR['ACCT_USER']);
if (is_array($return)) {
    # add account
    $return = $Customer->addCustomer($USERNAME, $PASSWORD, "reseller", "en", $PARENTID, $VAR['ACCT_USER'], $VAR['ACCT_PASS'], $VAR['ACCT_NAME'], $VAR['ACCT_ADDR'], "", "", "", $VAR['ACCT_CITY'], $VAR['ACCT_STATE'], $VAR['ACCT_COUNTRY'], $VAR['ACCT_ZIP'], "01", "8885551212", "01", "8885551212", "01", "8885551212", "en");
}
// Register domain
if (!is_array($return)) {
    $account = $return;
    $return = $DomOrder->registerDomain($USERNAME, $PASSWORD, "reseller", "en", $PARENTID, $domainHash, $nsHash, $account, $account, $account, $account, $account, 'NoInvoice');
}
$response = new Response($return);
// Status
if (@$return['status'] == 'Success') {
    echo 'REGISTER SUCCESS!';
}
// Common Output for all above functions.
开发者ID:chiranjeevjain,项目名称:agilebill,代码行数:31,代码来源:register.php

示例5: getCustomers

 public function getCustomers()
 {
     return $customers_id = Customer::getCustomerId();
 }
开发者ID:aantonw,项目名称:dcourier.system,代码行数:4,代码来源:InvoiceCommand.php

示例6: createCustomer

 function createCustomer()
 {
     $Customer = new Customer(LIBRARIES . "directi" . PATH_SEP . "wsdl" . PATH_SEP . "customer.wsdl");
     $return = $Customer->addCustomer($this->USERNAME, $this->PASSWORD, $this->ROLE, $this->LANGPREF, $this->PARENTID, $this->data['email'], $this->data['dom_pass'], $this->data['name'], $this->data['domain'], $this->data['address'], "", "", $this->data['city'], $this->data['state'], $this->data['country'], $this->data['zip'], $this->data['country_code'], $this->data['telephone'], "", "", "", "", $this->LANGPREF);
     $response = new Response($return);
     $response->errorAnalyse();
     if ($response->isError()) {
         $this->error_str = $response->errorMsg;
         $this->iserror = true;
         if ($response->errorCode == "com.logicboxes.foundation.sfnb.user.CustomerExistsException") {
             $return = $Customer->getCustomerId($this->USERNAME, $this->PASSWORD, $this->ROLE, $this->LANGPREF, $this->PARENTID, $this->data['email']);
             $this->account = $return;
             $response = new Response($return);
             $response->errorAnalyse();
             if ($response->isError()) {
                 $this->error_str = $response->errorMsg;
                 $this->iserror = true;
                 return;
             } else {
                 $this->error_str = "";
                 $this->iserror = false;
                 return;
             }
         }
         return;
     } else {
         $this->account = $response->getResult();
     }
     if (empty($this->account)) {
         $this->error_str = "An unknown error occurred while creating customer!";
         $this->iserror = true;
     }
     return;
 }
开发者ID:jwest00724,项目名称:AccountLab-Plus,代码行数:34,代码来源:directiHandler.class.php


注:本文中的Customer::getCustomerId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。