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 OrderItemAttributeRepositoryFactory

Class OrderItemAttributeRepositoryFactory

OrderItemAttributeRepositoryFactory implements OrderItemAttributeRepositoryFactoryInterface
Package: Order\Factories
Category: System
Located at CoreServices/Order/Factories/OrderItemAttributeRepositoryFactory.inc.php

Methods summary

public
# __construct( CI_DB_query_builder $dbQueryBuilder )

OrderItemAttributeRepositoryFactory constructor.

OrderItemAttributeRepositoryFactory constructor.

Parameters

$dbQueryBuilder
Query builder.
public OrderItemAttributeRepository
# createRepositoryByAttributeClass( string $className )

Creates an order item attribute repository by the given class name.

Creates an order item attribute repository by the given class name.

Parameters

$className
Name of the attribute class.

Returns

OrderItemAttributeRepository
Order item attribute repository instance.

Throws

InvalidArgumentException
On invalid argument.

Implementation of

OrderItemAttributeRepositoryFactoryInterface::createRepositoryByAttributeClass()
public OrderItemAttributeRepository
# createRepositoryByAttributeObject( OrderItemAttributeInterface $itemAttribute )

Creates an order item attribute repository by the given object type.

Creates an order item attribute repository by the given object type.

Parameters

$itemAttribute
Order item attribute.

Returns

OrderItemAttributeRepository
Order item attribute repository instance.

Throws

InvalidArgumentException
On invalid argument.

Implementation of

OrderItemAttributeRepositoryFactoryInterface::createRepositoryByAttributeObject()
public OrderItemAttributeRepository[]
# createRepositoryArray( )

Creates an array which contain all repository of type OrderItemAttributeRepositoryInterface.

Creates an array which contain all repository of type OrderItemAttributeRepositoryInterface.

Returns

OrderItemAttributeRepository[]

Implementation of

OrderItemAttributeRepositoryFactoryInterface::createRepositoryArray()
protected
# _setRepositoryArrayAttributeIfNull( )

Creates an OrderItemAttributeRepository object and assigns it to the key 'attribute' of the $repositoryArray array, when its current value is null.

Creates an OrderItemAttributeRepository object and assigns it to the key 'attribute' of the $repositoryArray array, when its current value is null.

protected
# _setRepositoryArrayPropertyIfNull( )

Creates an OrderItemPropertyRepository object and assigns it to the key 'property' of the $repositoryArray array, when its current value is null.

Creates an OrderItemPropertyRepository object and assigns it to the key 'property' of the $repositoryArray array, when its current value is null.

Properties summary

protected array $repositoryArray

Repository array. Default: ['attribute' => null, 'property' => null]

Repository array. Default: ['attribute' => null, 'property' => null]

# array('attribute' => null, 'property' => null)
protected Ci_Db_query_builder $db

Instance of query builder which is passed to the reader, writer and deleter.

Instance of query builder which is passed to the reader, writer and deleter.

#
API documentation generated by ApiGen