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


PHP Customer::getName方法代码示例

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


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

示例1: register

 public function register(Customer $customer)
 {
     $bodyResponce = $this->client->post('/customers/signup.json', ['username' => $customer->getUsername(), 'passwd' => $customer->getPasswd(), 'name' => $customer->getName(), 'company' => $customer->getCompany(), 'address-line-1' => $customer->getAddress()->getAddressLine1(), 'city' => $customer->getAddress()->getCity(), 'state' => $customer->getAddress()->getState(), 'country' => $customer->getAddress()->getCountry(), 'zipcode' => $customer->getAddress()->getZipcode(), 'phone-cc' => $customer->getPhone()->getCountryCode(), 'phone' => $customer->getPhone()->getNumber(), 'lang-pref' => $customer->getLang()]);
     $customer->setId((int) $bodyResponce[0]);
     $customer->setContacts($this->getDefaultContacts($customer));
     return $customer;
 }
开发者ID:jinguanio,项目名称:resellerclub,代码行数:7,代码来源:CustomerManager.php

示例2: gettersShouldRetrieveConfiguredData

 /**
  * @test
  */
 public function gettersShouldRetrieveConfiguredData()
 {
     $phone = new Phone(11, 999999999);
     $address = new Address('aa', 'aa', '2123', 'aa', 'asdad', 12312);
     $customer = new Customer('aa@test.com', 'aa', $phone, $address);
     $this->assertEquals('aa@test.com', $customer->getEmail());
     $this->assertEquals('aa', $customer->getName());
     $this->assertSame($phone, $customer->getPhone());
     $this->assertSame($address, $customer->getAddress());
 }
开发者ID:leonardorifeli,项目名称:pagseguro,代码行数:13,代码来源:CustomerTest.php

示例3: updateForm

 public function updateForm(Customer $customerToUpdate)
 {
     $this->name = $customerToUpdate->getName();
     $this->surname = $customerToUpdate->getSurname();
     $this->telephone = $customerToUpdate->getTelephone();
     $this->email = $customerToUpdate->getEmail();
     $form = $this->renderHTMLForCustomerForm('update');
     // Set page title
     $this->pageTitle = 'Update customer';
     // Set HTML
     $this->HTML = $form;
 }
开发者ID:aa222di,项目名称:toeswade-organizer,代码行数:12,代码来源:VCustomer.php

示例4: explode

     $cqr_list[$j] = explode('<|>', $mlistchunk[$i]);
     $j++;
 }
 $dlist = explode('<@>', $drglist);
 $j = 0;
 for ($i = 0; $i < count($dlist); $i++) {
     $dq_list[$j] = explode('<|>', $dlist[$i]);
     $j++;
 }
 $pdf = new PDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
 //$pdf->AliasNbPages();
 $pdf->setAutoPageBreak(TRUE, 45);
 $pdf->AddPage('P', 'A4');
 $pdf->SetFont('helvetica', 'B', 13);
 $pdf->SetY(56);
 $pdf->Cell(125, 8, $cust->getName(), 0, 0, 'L');
 $pdf->SetFont('helvetica', 'B', 14);
 $pdf->Cell(100, 8, "DC NO: {$dcno}", 0, 1, 'L');
 $pdf->SetFont('helvetica', '', 13);
 $pdf->Cell(125, 8, $cust->getAddressl1(), 0, 0, 'L');
 $pdf->Cell(100, 8, "Date: {$dcdate}", 0, 1, 'L');
 $pdf->Cell(125, 8, $cust->getAddressl2(), 0, 0, 'L');
 $pdf->Cell(100, 8, "Your Ref: {$cref}", 0, 1, 'L');
 $pdf->Cell(125, 8, "Phone No: " . $cust->getPhoneNo(), 0, 0, 'L');
 $pdf->Cell(100, 8, "Date: {$crefdate}", 0, 1, 'L');
 $pdf->ln();
 $pdf->line(0, 87, 220, 87);
 //line before mode of dispatch
 $pdf->setY(86);
 $pdf->MultiCell(125, 16, "Please receive the following materials and acknowledge the receipt", 0, 'L', 0, 0, '', '', true, 0, false, true, 16, 'M', true);
 $pdf->Cell(100, 8, "Mode Of Dispatch: {$dmode}", 0, 1, 'L');
开发者ID:sknagesh,项目名称:divyaeng2,代码行数:31,代码来源:materialoutward.php

示例5: updateDatabase

 private function updateDatabase(Customer $customerToUpdate)
 {
     $stmt = $this->db->db->prepare("UPDATE " . self::$dbTable . " SET `name`= :name, `surname`= :surname, `telephone`= :telephone, `email`= :email WHERE `id`=:id");
     $name = $customerToUpdate->getName();
     $surname = $customerToUpdate->getSurname();
     $telephone = $customerToUpdate->getTelephone();
     $email = $customerToUpdate->getEmail();
     $id = $customerToUpdate->getId();
     $stmt->bindParam(':name', $name);
     $stmt->bindParam(':surname', $surname);
     $stmt->bindParam(':telephone', $telephone);
     $stmt->bindParam(':email', $email);
     $stmt->bindParam(':id', $id);
     try {
         $stmt->execute();
     } catch (\PDOException $e) {
         print "Error!: " . $e->getMessage();
         die;
         //Remove or change message in production code
     }
 }
开发者ID:aa222di,项目名称:toeswade-organizer,代码行数:21,代码来源:CustomerCatalogue.php

示例6: getTerms

 private static function getTerms(Customer $customer)
 {
     $terms = array('P&P COMPUTER' => 30, 'Stanley Security' => 30, 'ABACUS RENT IT' => 30, 'TYCO SAFETY PRODUCTS' => 30, 'MONASH UNIVERSITY' => 30, 'LDS INTERNATIONAL' => 30, 'SECURITY MERCHANTS AUSTRALIA PTY LTD (Stock)' => 30, 'Support Services Pty Ltd' => 30, 'Soniq Digital Media Pty Ltd' => 30, 'EVER SUCCESS PTY LTD' => 30, 'SUMMER TECHNOLOGY' => 30, 'N2C' => 30, 'BALTHOR' => 30, 'EVERSAFE AUSTRALIA PTY LTD' => 30, 'BULLER SKI LIFTS' => 30, 'DRAEGER MEDICAL AUSTRALIA' => 30, 'WESTERN PORT WATER' => 30, 'COMPLETE INTEGRATED ALARM SERVICES' => 30, 'GREENHOOD IT' => 30, 'ULTRASOURCE PTY LTD' => 30, 'WELSH DIRECT' => 30, 'ALARM CORP' => 30, 'FETHERS Pty Ltd' => 30, 'DELTA ENERGY SYSTEMS PTY LTD' => 30, 'Quatius Australia Pty Ltd' => 30, 'TRONSEC SECURITY PTY LTD' => 30, 'DRAEGER SAFETY' => 30, 'Quatius Logistics Pty Ltd' => 30, 'DFP RECRUITMENT SERVICES PTY LTD' => 30, 'CAR PARKING SOLUTIONS P/L' => 30, 'GS1 AUSTRALIA' => 30, 'SECURITY MERCHANTS AUSTRALIA PTY LTD (Supply)' => 30, 'DFP RECRUITMENT SERVICES' => 30, 'FISHER & PAYKEL HEALTH CARE PTY LTD' => 30, 'LIMA ORTHOPAEDICS AUSTRALIA' => 21, 'Ultra View Technology' => 14, 'DSN AUSTRALIA' => 14, 'AE SMITH & SON PTY LTD' => 14, 'BAXTER INSTITUTE' => 14, 'Acute Solutions' => 14, 'BLUESHIELD TECHNOLOGIES PTY LTD' => 14, 'KS ENVIRONMENTAL' => 14, 'DANMAC PRODUCTS PTY LTD' => 14, 'Fisher & Paykel Healthcare' => 30, 'GP GRADERS PTY LTD' => 30, 'NAVTECH SECURITY' => 7);
     foreach ($terms as $name => $days) {
         if (strtoupper($name) === strtoupper(trim($customer->getName()))) {
             return $terms[$name];
         }
     }
     return 0;
 }
开发者ID:larryu,项目名称:magento-b2b,代码行数:10,代码来源:SalesExport_Xero.php

示例7: testSetNameWorks

 public function testSetNameWorks()
 {
     $customer = new Customer();
     $customer->setName('Luís Dalmolin');
     $this->assertEquals('Luís Dalmolin', $customer->getName());
 }
开发者ID:hilltool,项目名称:tray-php,代码行数:6,代码来源:CustomerTest.php

示例8: date

     } else {
         $docref = 'DEW-QA-R-05';
         $reptype = "Inprocess Inspection Report";
     }
 }
 $jdate = '';
 if (isset($_POST['rdate'])) {
     $rdate = $_POST['rdate'];
 } else {
     $rdate = date('D/M/Y');
 }
 ///customer details
 $cu = new Customer();
 $cu->setCID($customerid);
 $cu->setCustomerDetails();
 $custname = $cu->getName();
 ///part details
 if ($opedrawingid != '') {
     $j = "SELECT Component_Name, Customer_Name, Part_NO,Revision_NO,Cust_Drawing_NO,Operation_Desc FROM\n\t\t Operation as op INNER JOIN Component as  comp ON comp.Drawing_ID=op.Drawing_ID\n\t\t INNER JOIN Customer as cust ON cust.Customer_ID=comp.Customer_ID\n\t\t INNER JOIN Part_Drawing as pd on pd.Link_ID=comp.Drawing_ID WHERE op.Operation_ID='{$opid}' AND Backed_UP=0;";
 } else {
     $j = "SELECT Component_Name, Customer_Name, Part_NO,Revision_NO,Cust_Drawing_NO,Operation_Desc FROM\n\t\t Operation as op INNER JOIN Component as  comp ON comp.Drawing_ID=op.Drawing_ID\n\t\t INNER JOIN Customer as cust ON cust.Customer_ID=comp.Customer_ID \n\t\t INNER JOIN Part_Drawing as pd on pd.Link_ID=comp.Drawing_ID WHERE comp.Drawing_ID='{$drawingid}' AND Backed_UP=0;";
 }
 if (!($resj = $cxn->query($j))) {
     exit("error (dimnreport.php): {$j} : {$cxn->error}");
 }
 $rrs = mysqli_fetch_assoc($resj);
 $cname = $rrs['Component_Name'];
 $partno = $rrs['Part_NO'] . "-" . $rrs['Revision_NO'];
 if ($rrs['Cust_Drawing_NO'] != '') {
     $partno .= ' /' . $rrs['Cust_Drawing_NO'];
 }
开发者ID:sknagesh,项目名称:divyaeng2,代码行数:31,代码来源:dimensionreport.php

示例9: Customer

<?php

//FileNamingResolver
define('SECURITY', true);
require_once __DIR__ . "/src/HelloTrait.php";
require_once __DIR__ . "/src/RoleInterface.php";
require_once __DIR__ . "/src/User.php";
require_once __DIR__ . "/src/Customer.php";
//require_once "/src/User.php";
//var_dump(__DIR__);
//PHP_EOL = "\n"
//$user1 = new User("Max1");
//$user2 = new User("Max2");
// var_dump($user);
//$user1->setName("Max1");
// $user->surname = "Pain";
// // print $user->name . " " . $user->surname;
// // print $user->getFullName();
// print $user->hello();
// print $user->getName();
//print User::getCount();
//print $user1->getCount();
$customer = new Customer("Lex");
echo $customer->getName();
echo "<br>";
echo $customer;
开发者ID:goshshitmailme,项目名称:php,代码行数:26,代码来源:oop.php


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