class Item extends Base

Class Item

Properties

static string $pimcoreClass Pimcore Object Class.

Methods

static  string
getPimcoreObjectClass()

get Pimcore implementation class.

from Base
static  Base
create()

Create new instance of Pimcore Object.

from Base
static  int
classId()

returns the class ID of the current object class.

from Base
static  Listing
getList( array $config = array())

No description

from Base
static  Data[]
getMandatoryFields()

No description

from Base
static 
validate($data)

No description

from Base
static  mixed|null
__callStatic($method, $arguments)

No description

from Base
array
toArray()

Object to Array.

from Base
string
getCacheKey()

get cache key

from Base
AdminStyle
getElementAdminStyle()

Admin Element Style.

from Base
save()

No description

from Base
Note
createNote($type)

Create a note for this object.

from Base
AbstractObject
getVariantMaster()

Return Topmost Master if Object is Variant

from Base
bool
isAllowedForShop( Shop $shop)

No description

from Base
bool|string
getUrl($language, $params = array(), $route, bool $reset = false, Shop $shop = null)

No description

from Base
float
getTotalWithoutTax()

Calculate Total of OrderItem without tax.

null|AbstractObject
getOrder()

Get Order for OrderItem.

int
getInvoicedAmount()

calculates the invoiced amount

int
getShippedAmount()

calculates the invoiced amount

string|null
getProductName()

No description

Asset|null
getProductImage()

No description

getProduct()

No description

setProduct( Product $product)

No description

double
getWholesalePrice()

No description

setWholesalePrice( double $wholesalePrice)

No description

double
getRetailPrice()

No description

setRetailPrice( double $retailPrice)

No description

double
getPrice()

No description

setPrice( double $price)

No description

double
getPriceWithoutTax()

No description

setPriceWithoutTax( double $priceWithoutTax)

No description

int
getAmount()

No description

setAmount( int $amount)

No description

double
getTotalTax()

No description

setTotalTax( double $totalTax)

No description

double
getTotal()

No description

setTotal( double $total)

No description

mixed
getExtraInformation()

No description

setExtraInformation( mixed $extraInformation)

No description

boolean
getIsGiftItem()

No description

setIsGiftItem( boolean $isGiftItem)

No description

mixed
getTaxes()

No description

setTaxes( mixed $taxes)

No description

boolean
getIsVirtualProduct()

No description

setIsVirtualProduct( boolean $isVirtualProduct)

No description

Asset
getVirtualAsset()

No description

setVirtualAsset( Asset|null $virtualAsset)

No description

Details

in Base at line line 50
static string getPimcoreObjectClass()

get Pimcore implementation class.

Return Value

string

Exceptions

Exception

in Base at line line 68
static Base create()

Create new instance of Pimcore Object.

Return Value

Base

Exceptions

Exception

in Base at line line 84
static int classId()

returns the class ID of the current object class.

Return Value

int

in Base at line line 98
static Listing getList( array $config = array())

Parameters

array $config

Return Value

Listing

Exceptions

Exception

in Base at line line 131
static Data[] getMandatoryFields()

Return Value

Data[]

Exceptions

Exception

in Base at line line 156
static validate($data)

Parameters

$data

Exceptions

ValidationException

in Base at line line 173
static mixed|null __callStatic($method, $arguments)

Parameters

$method
$arguments

Return Value

mixed|null

Exceptions

Exception

in Base at line line 194
array toArray()

Object to Array.

Return Value

array

in Base at line line 204
string getCacheKey()

get cache key

Return Value

string

in Base at line line 224
AdminStyle getElementAdminStyle()

Admin Element Style.

Return Value

AdminStyle

in Base at line line 247
Base save()

Return Value

Base

Exceptions

Exception
Exception
ValidationException

in Base at line line 267
Note createNote($type)

Create a note for this object.

Parameters

$type string

Return Value

Note $note

in Base at line line 289
AbstractObject getVariantMaster()

Return Topmost Master if Object is Variant

Return Value

AbstractObject

in Base at line line 304
bool isAllowedForShop( Shop $shop)

Parameters

Shop $shop

Return Value

bool

in Base at line line 323
bool|string getUrl($language, $params = array(), $route, bool $reset = false, Shop $shop = null)

Parameters

$language
$params
$route
bool $reset
Shop $shop

Return Value

bool|string

at line line 55
float getTotalWithoutTax()

Calculate Total of OrderItem without tax.

Return Value

float

at line line 65
null|AbstractObject getOrder()

Get Order for OrderItem.

Return Value

null|AbstractObject

at line line 85
int getInvoicedAmount()

calculates the invoiced amount

Return Value

int

at line line 113
int getShippedAmount()

calculates the invoiced amount

Return Value

int

at line line 139
string|null getProductName()

Return Value

string|null Product Name

at line line 151
Asset|null getProductImage()

Return Value

Asset|null

at line line 167
Product getProduct()

Return Value

Product

Exceptions

ObjectUnsupportedException

at line line 177
setProduct( Product $product)

Parameters

Product $product

Exceptions

ObjectUnsupportedException

at line line 187
double getWholesalePrice()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 197
setWholesalePrice( double $wholesalePrice)

Parameters

double $wholesalePrice

Exceptions

ObjectUnsupportedException

at line line 207
double getRetailPrice()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 217
setRetailPrice( double $retailPrice)

Parameters

double $retailPrice

Exceptions

ObjectUnsupportedException

at line line 227
double getPrice()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 237
setPrice( double $price)

Parameters

double $price

Exceptions

ObjectUnsupportedException

at line line 247
double getPriceWithoutTax()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 257
setPriceWithoutTax( double $priceWithoutTax)

Parameters

double $priceWithoutTax

Exceptions

ObjectUnsupportedException

at line line 267
int getAmount()

Return Value

int

Exceptions

ObjectUnsupportedException

at line line 277
setAmount( int $amount)

Parameters

int $amount

Exceptions

ObjectUnsupportedException

at line line 287
double getTotalTax()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 297
setTotalTax( double $totalTax)

Parameters

double $totalTax

Exceptions

ObjectUnsupportedException

at line line 307
double getTotal()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 317
setTotal( double $total)

Parameters

double $total

Exceptions

ObjectUnsupportedException

at line line 327
mixed getExtraInformation()

Return Value

mixed

Exceptions

ObjectUnsupportedException

at line line 337
setExtraInformation( mixed $extraInformation)

Parameters

mixed $extraInformation

Exceptions

ObjectUnsupportedException

at line line 347
boolean getIsGiftItem()

Return Value

boolean

Exceptions

ObjectUnsupportedException

at line line 357
setIsGiftItem( boolean $isGiftItem)

Parameters

boolean $isGiftItem

Exceptions

ObjectUnsupportedException

at line line 367
mixed getTaxes()

Return Value

mixed

Exceptions

ObjectUnsupportedException

at line line 377
setTaxes( mixed $taxes)

Parameters

mixed $taxes

Exceptions

ObjectUnsupportedException

at line line 387
boolean getIsVirtualProduct()

Return Value

boolean

Exceptions

ObjectUnsupportedException

at line line 397
setIsVirtualProduct( boolean $isVirtualProduct)

Parameters

boolean $isVirtualProduct

Exceptions

ObjectUnsupportedException

at line line 407
Asset getVirtualAsset()

Return Value

Asset

Exceptions

ObjectUnsupportedException

at line line 417
setVirtualAsset( Asset|null $virtualAsset)

Parameters

Asset|null $virtualAsset

Exceptions

ObjectUnsupportedException