Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AbstractCustomerServiceFactory
  • Customer
  • CustomerDeleter
  • CustomerFactory
  • CustomerReader
  • CustomerReadService
  • CustomerRepository
  • CustomerService
  • CustomerServiceFactory
  • CustomerWriter
  • CustomerWriteService

Class CustomerWriter

Class CustomerWriter

This class is used for writing customer data to the database

CustomerWriter implements CustomerWriterInterface
Package: Customer
Category: System
Implements: CustomerWriterInterface
Located at CoreServices/Customer/CustomerWriter.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $dbQueryBuilder )

Constructor of the class CustomerWriter.

Constructor of the class CustomerWriter.

Parameters

$dbQueryBuilder
Query builder.
public
# write( CustomerInterface $customer )

Writes customer data.

Writes customer data.

If customer does not exists it will perform an _insert(), otherwise it will perform an _update().

Parameters

$customer
Customer.

Implementation of

CustomerWriterInterface::write()
protected
# _insert( CustomerInterface $customer )

Helper method to insert customer data into the database.

Helper method to insert customer data into the database.

Parameters

$customer
Customer.
protected
# _update( CustomerInterface $customer )

Helper method to update customer data in the database.

Helper method to update customer data in the database.

Parameters

$customer

Customer.

TODO Use wrapper function getDefaultAddressId() instead of getDefaultAddress()->getId()

Properties summary

protected CI_DB_query_builder $db

Query builder.

Query builder.

#
API documentation generated by ApiGen