Class OrderItemAttributeRepositoryFactory
Class OrderItemAttributeRepositoryFactory
- OrderItemAttributeRepositoryFactory implements OrderItemAttributeRepositoryFactoryInterface
Category: System
Located at Services/Core/Order/Factories/OrderItemAttributeRepositoryFactory.inc.php
Methods summary
public
__construct( CI_DB_query_builder $dbQueryBuilder )
OrderItemAttributeRepositoryFactory constructor.
public
createRepositoryByAttributeClass( string $className )
: OrderItemAttributeRepository
Creates an order item attribute repository by the given class name.
public
createRepositoryByAttributeObject( OrderItemAttributeInterface $itemAttribute )
: OrderItemAttributeRepository
Creates an order item attribute repository by the given object type.
public
createRepositoryArray( void )
: OrderItemAttributeRepository[]
Creates an array which contain all repository of type OrderItemAttributeRepositoryInterface.
protected
_setRepositoryArrayAttributeIfNull( void )
Creates an OrderItemAttributeRepository object and assigns it to the key 'attribute' of the $repositoryArray array, when its current value is null.
protected
_setRepositoryArrayPropertyIfNull( void )
Creates an OrderItemPropertyRepository object and assigns it to the key 'property' of the $repositoryArray array, when its current value is null.
Properties summary
protected
$repositoryArray
: array
Repository array. Default: ['attribute' => null, 'property' => null]
array('attribute' => null, 'property' => null)
protected
$db
: Ci_Db_query_builder
Instance of query builder which is passed to the reader, writer and deleter.