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

  • AbstractCollection
  • AddressFormatProvider
  • CurrencyCode
  • CustomerStatusProvider
  • EditableCollection
  • EditableKeyValueCollection
  • EmptyCurrencyCode
  • EmptyDateTime
  • EmptyLanguageCode
  • IdCollection
  • KeyValueCollection
  • LanguageCode
  • StringCollection
  • YetAnotherLanguageProvider

Class EditableCollection

Class EditableCollection

AbstractCollection implements IteratorAggregate, Countable
Extended by EditableCollection

Direct known subclasses

OrderItemAttributeCollection, ProductAttributeCollection, ProductImageCollection, ProductListItemCollection

Indirect known subclasses

StoredOrderItemAttributeCollection, StoredProductAttributeCollection

Package: Shared
Category: System
Located at Shared/EditableCollection.php

Methods summary

public
# setItem( integer|IntType $index, string|StringType $value )

Sets an item to the collection. If the index already exists, the value gets override.

Sets an item to the collection. If the index already exists, the value gets override.

Parameters

$index
Gets validate internally with the IntType.
$value
Gets validate internally with the StringType.

Returns


$this Same instance to make chained method calls possible.

Throws

InvalidArgumentException
When value has an invalid type.
public
# addItem( string|StringType $value )

Adds a new item to the collection.

Adds a new item to the collection.

Parameters

$value
Gets validate internally with the StringType.

Returns


$this Same instance to make chained method calls possible.

Throws

InvalidArgumentException
When value has an invalid type.
public
# addCollection( EditableCollection $collection )

Add another collection to this one.

Add another collection to this one.

Parameters

$collection
Collection to add.

Returns


$this Same instance to make chained method calls possible.

Throws

InvalidArgumentException
When the item types of the passed collection are invalid.
public
# getClone( )

Return a clone of the current editable key value collection instance.

Return a clone of the current editable key value collection instance.

protected string
# _getValidType( )

Get valid type.

Get valid type.

This method must be implemented in the child-collection classes.

Returns

string

Methods inherited from AbstractCollection

__construct(), _add(), _getExceptionText(), _itemIsValid(), count(), getArray(), getItem(), getIterator(), isEmpty()

Properties summary

Properties inherited from AbstractCollection

$collectionContentArray

API documentation generated by ApiGen