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


PHP unknown::getCompany方法代码示例

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


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

示例1: exportDeliveryAddress

 /**
  * Exports the delivery address
  */
 protected function exportDeliveryAddress()
 {
     if ($this->ShippingAddress === null) {
         return;
     }
     if ($this->PLENTY_customerID === null) {
         return;
     }
     $city = trim($this->ShippingAddress->getCity());
     $street_arr = PlentymarketsUtils::extractStreetAndHouseNo($this->ShippingAddress->getStreet());
     if (isset($street_arr['street']) && strlen($street_arr['street']) > 0) {
         $streetName = $street_arr['street'];
     } else {
         $streetName = trim($this->ShippingAddress->getStreet());
     }
     if (isset($street_arr['houseNo']) && strlen($street_arr['houseNo']) > 0) {
         $streetHouseNumber = $street_arr['houseNo'];
     } else {
         $streetHouseNumber = '';
     }
     $zip = trim($this->ShippingAddress->getZipCode());
     if (empty($city)) {
         $city = PlentymarketsConfig::getInstance()->get('CustomerDefaultCity');
     }
     if (!isset($streetHouseNumber) || $streetHouseNumber == '') {
         $streetHouseNumber = PlentymarketsConfig::getInstance()->get('CustomerDefaultHouseNumber');
     }
     if (!isset($streetName) || $streetName == '') {
         $streetName = PlentymarketsConfig::getInstance()->get('CustomerDefaultStreet');
     }
     if ($zip == '') {
         $zip = PlentymarketsConfig::getInstance()->get('CustomerDefaultZipcode');
     }
     $Request_SetCustomerDeliveryAddresses = new PlentySoapRequest_SetCustomerDeliveryAddresses();
     $Request_SetCustomerDeliveryAddresses->DeliveryAddresses = array();
     $Object_SetCustomerDeliveryAddressesCustomer = new PlentySoapRequest_ObjectSetCustomerDeliveryAddresses();
     $Object_SetCustomerDeliveryAddressesCustomer->AdditionalName = null;
     // string
     $Object_SetCustomerDeliveryAddressesCustomer->City = $city;
     $Object_SetCustomerDeliveryAddressesCustomer->Company = $this->ShippingAddress->getCompany();
     $Object_SetCustomerDeliveryAddressesCustomer->CountryID = $this->getDeliveryCountryID();
     // int
     $Object_SetCustomerDeliveryAddressesCustomer->CustomerID = $this->PLENTY_customerID;
     // int
     $Object_SetCustomerDeliveryAddressesCustomer->ExternalDeliveryAddressID = PlentymarketsUtils::getExternalCustomerID($this->ShippingAddress->getId());
     // string
     $Object_SetCustomerDeliveryAddressesCustomer->FirstName = $this->ShippingAddress->getFirstName();
     $Object_SetCustomerDeliveryAddressesCustomer->FormOfAddress = $this->getDeliveryFormOfAddress();
     // int
     $Object_SetCustomerDeliveryAddressesCustomer->HouseNumber = $streetHouseNumber;
     $Object_SetCustomerDeliveryAddressesCustomer->Street = $streetName;
     $Object_SetCustomerDeliveryAddressesCustomer->Surname = $this->ShippingAddress->getLastName();
     $Object_SetCustomerDeliveryAddressesCustomer->ZIP = $zip;
     $Request_SetCustomerDeliveryAddresses->DeliveryAddresses[] = $Object_SetCustomerDeliveryAddressesCustomer;
     $Response_SetCustomerDeliveryAddresses = PlentymarketsSoapClient::getInstance()->SetCustomerDeliveryAddresses($Request_SetCustomerDeliveryAddresses);
     if (!$Response_SetCustomerDeliveryAddresses->Success) {
         throw new PlentymarketsExportEntityException('The delivery address of the customer with the number »' . $this->getCustomerNumber() . '« could not be exported', 2120);
     }
     $this->PLENTY_addressDispatchID = (int) $Response_SetCustomerDeliveryAddresses->ResponseMessages->item[0]->SuccessMessages->item[0]->Value;
 }
开发者ID:pixolith,项目名称:plentymarkets-shopware-connector,代码行数:63,代码来源:PlentymarketsExportEntityCustomer.php

示例2: sendMakerRegisterMail

 /**
  * send maker verification mail with Registration URL for new Email.
  *
  * @param unknown $observer        	
  */
 public function sendMakerRegisterMail($observer)
 {
     $maker_email = $observer->getMaker_email();
     $approver_name = $observer->getApprover_name();
     $approver_id = $observer->getApprover_id();
     $approver_company = $observer->getCompany();
     $customer_name = "Customer";
     $maker_data = implode(',', array('maker_email' => $maker_email, 'approver_name' => $approver_name, 'approver_id' => $approver_id, 'company' => $approver_company));
     $url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK, array('_secure' => true)) . "customer/account/login/id/reg/mkregister/" . urlencode(base64_encode($maker_data));
     $mail_vars = array('maker_email' => $maker_email, 'approver_name' => $approver_name, 'sender' => $approver_name, 'approver_id' => $approver_id, 'company' => $approver_company, 'url' => $url, 'name' => $customer_name);
     $email_template = Mage::getModel('core/email_template');
     $template = Mage::getStoreConfig(self::EMAIL_TEMPLATE_XML_PATH);
     // Send mail
     $email_template->sendTransactional($template, 'sales', $maker_email, $customer_name, $mail_vars);
 }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:20,代码来源:Observer.php

示例3: createFormDataArray

 /**
  * Fills in the form data array
  *
  * @param  unknown        $object
  * @return array
  */
 protected function createFormDataArray($object)
 {
     return array("label" => $object->getLabel(), "title" => $object->getTitleId(), "firstname" => $object->getFirstname(), "lastname" => $object->getLastname(), "address1" => $object->getAddress1(), "address2" => $object->getAddress2(), "address3" => $object->getAddress3(), "zipcode" => $object->getZipcode(), "city" => $object->getCity(), "country" => $object->getCountryId(), "cellphone" => $object->getCellphone(), "phone" => $object->getPhone(), "company" => $object->getCompany());
 }
开发者ID:NandoKstroNet,项目名称:thelia,代码行数:10,代码来源:AddressController.php


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