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
getInvoice()

Get Invoice for InvoiceItem.

string|null
getProductName()

No description

Asset|null
getProductImage()

No description

getOrderItem()

No description

setOrderItem( Item $orderItem)

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

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 56
float getTotalWithoutTax()

Calculate Total of OrderItem without tax.

Return Value

float

at line line 66
null|AbstractObject getInvoice()

Get Invoice for InvoiceItem.

Return Value

null|AbstractObject

at line line 84
string|null getProductName()

Return Value

string|null Product Name

at line line 96
Asset|null getProductImage()

Return Value

Asset|null

at line line 112
Item getOrderItem()

Return Value

Item

Exceptions

ObjectUnsupportedException

at line line 122
setOrderItem( Item $orderItem)

Parameters

Item $orderItem

Exceptions

ObjectUnsupportedException

at line line 132
Product getProduct()

Return Value

Product

Exceptions

ObjectUnsupportedException

at line line 142
setProduct( Product $product)

Parameters

Product $product

Exceptions

ObjectUnsupportedException

at line line 152
double getWholesalePrice()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 162
setWholesalePrice( double $wholesalePrice)

Parameters

double $wholesalePrice

Exceptions

ObjectUnsupportedException

at line line 172
double getRetailPrice()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 182
setRetailPrice( double $retailPrice)

Parameters

double $retailPrice

Exceptions

ObjectUnsupportedException

at line line 192
double getPrice()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 202
setPrice( double $price)

Parameters

double $price

Exceptions

ObjectUnsupportedException

at line line 212
double getPriceWithoutTax()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 222
setPriceWithoutTax( double $priceWithoutTax)

Parameters

double $priceWithoutTax

Exceptions

ObjectUnsupportedException

at line line 232
int getAmount()

Return Value

int

Exceptions

ObjectUnsupportedException

at line line 242
setAmount( int $amount)

Parameters

int $amount

Exceptions

ObjectUnsupportedException

at line line 252
double getTotalTax()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 262
setTotalTax( double $totalTax)

Parameters

double $totalTax

Exceptions

ObjectUnsupportedException

at line line 272
double getTotal()

Return Value

double

Exceptions

ObjectUnsupportedException

at line line 282
setTotal( double $total)

Parameters

double $total

Exceptions

ObjectUnsupportedException

at line line 292
mixed getExtraInformation()

Return Value

mixed

Exceptions

ObjectUnsupportedException

at line line 302
setExtraInformation( mixed $extraInformation)

Parameters

mixed $extraInformation

Exceptions

ObjectUnsupportedException

at line line 312
boolean getIsGiftItem()

Return Value

boolean

Exceptions

ObjectUnsupportedException

at line line 322
setIsGiftItem( boolean $isGiftItem)

Parameters

boolean $isGiftItem

Exceptions

ObjectUnsupportedException

at line line 332
mixed getTaxes()

Return Value

mixed

Exceptions

ObjectUnsupportedException

at line line 342
setTaxes( mixed $taxes)

Parameters

mixed $taxes

Exceptions

ObjectUnsupportedException