Class ProductListItem

Class ProductListItem

Methods summary

public __construct( ProductRepositoryInterface $productRepository, IdType $productId = null, BoolType $isActive = null, StringType $name = null, StringType $urlKeywords = null, StringType $image = null, StringType $imageAltText = null )

ProductListItem constructor.

public getProductId( void ) : integer

Returns the product ID.

public isActive( void ) : boolean

Checks if product is active or not.

public getName( void ) : string

Returns the name of the product.

public getUrlKeywords( void ) : string

Returns the URL keywords.

public getImage( void ) : string

Returns the image.

public getImageAltText( void ) : string

Returns the alternative image text.

public getProductObject( void ) : ProductListItem

Returns the product object.

public getSortOrder( void ) : integer

Get Sort Order

public getAvailableDateTime( void ) : DateTime

Get Available Date Time

public getAddedDateTime( void ) : DateTime

Get Added Date Time

public getLastModifiedDateTime( void ) : DateTime

Get Last Modified Date Time

public getOrderedCount( void ) : integer

Get Ordered Count

public getProductModel( void ) : string

Get Product Model

public getEan( void ) : string

Get EAN

public getPrice( void ) : float

Get Price

public getTaxClassId( void ) : integer

Get Tax Class ID

public getQuantity( void ) : float

Get Quantity

public getWeight( void ) : float

Get Weight

public getDiscountAllowed( void ) : float

Get Discount Allowed

public getShippingCosts( void ) : float

Get Shipping Costs

public getShippingTimeId( void ) : integer

Get Shipping Time ID

public getProductTypeId( void ) : integer

Get Product Type ID.

public getManufacturerId( void ) : integer

Get Manufacturer ID

public getQuantityUnitId( void ) : integer

Get Quantity Unit ID

public isFsk18( void ) : boolean

Is FSK 18

public isVpeActive( void ) : boolean

Is VPE Active

public getVpeId( void ) : integer

Get VPE ID

public getVpeValue( void ) : float

Get VPE Value

public setProductId( IdType $id ) : ProductListItem

Set Product ID value.

public setActive( BoolType $status ) : ProductListItem

Set active state value.

public setName( StringType $name ) : ProductListItem

Set product name.

public setUrlKeywords( StringType $urlKeywords ) : ProductListItem

Set product URL keywords.

public setImage( StringType $image ) : ProductListItem

Set product image.

public setImageAltText( StringType $imageAltText ) : ProductListItem

Set image alt text.

public setSortOrder( IntType $sortOrder ) : ProductListItem

Set Sort Order

public setAddedDateTime( DateTime $date ) : ProductListItem

Sets the added date time.

public setAvailableDateTime( DateTime $date ) : ProductListItem

Set Available Date Time

public setLastModifiedDateTime( DateTime $date ) : ProductListItem

Set Last Modified Date Time

public setOrderedCount( IntType $count ) : ProductListItem

Set Ordered Count

public setProductModel( StringType $model ) : ProductListItem

Set Product Model

public setEan( StringType $ean ) : ProductListItem

Set EAN

public setPrice( DecimalType $price ) : ProductListItem

Set Price

public setTaxClassId( IdType $id ) : ProductListItem

Set Tax Class ID

public setQuantity( DecimalType $quantity ) : ProductListItem

Set Quantity

public setWeight( DecimalType $weight ) : ProductListItem

Set Weight

public setDiscountAllowed( DecimalType $discount ) : ProductListItem

Set Discount Allowed

public setShippingCosts( DecimalType $price ) : ProductListItem

Set Shipping Costs

public setShippingTimeId( IdType $id ) : ProductListItem

Set Shipping Time ID

public setProductTypeId( IdType $id ) : ProductListItem

Set Product Type ID.

public setManufacturerId( IdType $id ) : ProductListItem

Set Manufacturer ID

public setQuantityUnitId( IdType $id ) : ProductListItem

Set Quantity Unit ID

public setFsk18( BoolType $status ) : ProductListItem

Set FSK 18

public setVpeActive( BoolType $status ) : ProductListItem

Set VPE Active

public setVpeId( IdType $id ) : ProductListItem

Set VPE ID

public setVpeValue( DecimalType $vpeValue ) : ProductListItem

Set VPE Value

Properties summary

protected $productRepository : ProductRepositoryInterface

Product repository.


		
protected $productId : integer

Product ID

0
protected $active : boolean

Product Active Status

false
protected $sortOrder : integer

Sort Order

0
protected $addedDateTime : DateTime

Added DateTime


		
protected $availableDateTime : DateTime

Available DateTime


		
protected $lastModifiedDateTime : DateTime

Last Modified DateTime


		
protected $orderedCount : integer

Ordered Count

0
protected $productModel : string

Product Model

''
protected $ean : string

EAN

''
protected $price : float

Price

0.00
protected $discountAllowed : float

Discount Allowed

0.00
protected $taxClassId : integer

Tax Class ID

0
protected $quantity : float

Quantity

0.00
protected $name : string

Product Name

''
protected $image : string

Image

''
protected $imageAltText : string

Image alternative text

''
protected $urlKeywords : string

URL Keywords

''
protected $weight : float

Weight

0.00
protected $shippingCosts : float

Shipping costs

0.00
protected $shippingTimeId : integer

Shipping Time ID

0
protected $productTypeId : integer

Product Type ID

0
protected $manufacturerId : integer

Manufacturer ID

0
protected $quantityUnitId : integer

Manufacturer ID

0
protected $fsk18 : boolean

FSK 18 Status

false
protected $vpeActive : boolean

VPE Active Status

false
protected $vpeId : integer

VPE ID

0
protected $vpeValue : float

VPE Value

0.00