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

  • OrderItemAttributeRepository
  • OrderItemAttributeRepositoryDeleter
  • OrderItemAttributeRepositoryReader
  • OrderItemAttributeRepositoryWriter
  • OrderItemPropertyRepository
  • OrderItemPropertyRepositoryDeleter
  • OrderItemPropertyRepositoryReader
  • OrderItemPropertyRepositoryWriter
  • OrderItemRepository
  • OrderItemRepositoryDeleter
  • OrderItemRepositoryReader
  • OrderItemRepositoryWriter
  • OrderRepository
  • OrderRepositoryDeleter
  • OrderRepositoryReader
  • OrderRepositoryWriter
  • OrderTotalRepository
  • OrderTotalRepositoryDeleter
  • OrderTotalRepositoryReader
  • OrderTotalRepositoryWriter

Class OrderRepositoryWriter

Class OrderRepositoryWriter

OrderRepositoryWriter implements OrderRepositoryWriterInterface
Package: Order\Repositories
Category: System
Located at CoreServices/Order/Repositories/Writer/OrderRepositoryWriter.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $db )

OrderRepositoryWriter constructor

OrderRepositoryWriter constructor

Parameters

$db
Query builder.
public integer
# insert( OrderInterface $order )

Inserts a new order to the orders table.

Inserts a new order to the orders table.

Parameters

$order
Order.

Returns

integer
ID of inserted order.

Implementation of

OrderRepositoryWriterInterface::insert()
public OrderRepositoryWriter
# update( OrderInterface $order )

Updates an existing order in the orders table.

Updates an existing order in the orders table.

Parameters

$order
Order object.

Returns

OrderRepositoryWriter
Same instance for method chaining.

Implementation of

OrderRepositoryWriterInterface::update()
protected array
# _serializeOrder( OrderInterface $order )

Converts the order to an associative array that is later used to insert/update the values into the database.

Converts the order to an associative array that is later used to insert/update the values into the database.

Parameters

$order
The object to be serialized.

Returns

array
Contains the orders object matched with their respective db columns.
protected array
# _serializeAddressBlock( AddressBlockInterface $addressBlock, StringType $prefix )

Serializes address block.

Serializes address block.

Parameters

$addressBlock
The object to be serialized.
$prefix

The address prefix can be one of the "delivery", "billing" and "customers".

Returns

array
Array with the address data.

Properties summary

protected CI_DB_query_builder $db

Query builder.

Query builder.

#
API documentation generated by ApiGen