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

  • AbstractOrderServiceFactory
  • OrderFactory
  • OrderItemAttributeFactory
  • OrderItemAttributeRepositoryFactory
  • OrderItemFactory
  • OrderItemPropertyFactory
  • OrderServiceFactory
  • OrderTotalFactory

Class OrderTotalFactory

Class OrderTotalFactory

OrderTotalFactory implements OrderTotalFactoryInterface
Package: Order\Factories
Category: System
Located at CoreServices/Order/Factories/OrderTotalFactory.inc.php

Methods summary

public OrderTotal
# createOrderTotal( StringType $title, DecimalType $value, StringType $valueText = null, StringType $class = null, IntType $sortOrder = null )

Creates an OrderTotal object.

Creates an OrderTotal object.

Parameters

$title
The title of the order total item.
$value
The decimal value of the order total item.
$valueText
(optional) The formatted value as text with currency and so on.
$class
(optional) The used order total class (e.g. ot_subtotal).
$sortOrder
(optional) The sort order of the order total item.

Returns

OrderTotal
New order total object.

Implementation of

OrderTotalFactoryInterface::createOrderTotal()
public StoredOrderTotal
# createStoredOrderTotal( IdType $orderTotalId )

Create a StoredOrderTotal object.

Create a StoredOrderTotal object.

Parameters

$orderTotalId
ID of the order total item.

Returns

StoredOrderTotal
New stored order total object.

Implementation of

OrderTotalFactoryInterface::createStoredOrderTotal()
API documentation generated by ApiGen