class Item extends AbstractData

Class Fieldcollection

Properties

static string $pimcoreClass Pimcore Object Class.

Methods

static  string
getPimcoreObjectClass()

get Pimcore implementation class.

static  int
getFieldCollectionType()

returns the class ID of the current object class.

static  AbstractData
create()

Create new instance of Pimcore Object.

static  Data[]
getMandatoryFields()

No description

static 
validate($data)

No description

getPriceRule()

No description

setPriceRule( PriceRule $priceRule)

No description

string
getVoucherCode()

No description

setVoucherCode( string $voucherCode)

No description

float
getDiscount()

No description

setDiscount( float $discount)

No description

Details

in AbstractData at line line 40
static string getPimcoreObjectClass()

get Pimcore implementation class.

Return Value

string

in AbstractData at line line 56
static int getFieldCollectionType()

returns the class ID of the current object class.

Return Value

int

in AbstractData at line line 70
static AbstractData create()

Create new instance of Pimcore Object.

Return Value

AbstractData

Exceptions

Exception

in AbstractData at line line 85
static Data[] getMandatoryFields()

Return Value

Data[]

Exceptions

Exception

in AbstractData at line line 110
static validate($data)

Parameters

$data

Exceptions

ValidationException

at line line 40
PriceRule getPriceRule()

Return Value

PriceRule

Exceptions

ObjectUnsupportedException

at line line 50
setPriceRule( PriceRule $priceRule)

Parameters

PriceRule $priceRule

Exceptions

ObjectUnsupportedException

at line line 60
string getVoucherCode()

Return Value

string

Exceptions

ObjectUnsupportedException

at line line 70
setVoucherCode( string $voucherCode)

Parameters

string $voucherCode

Exceptions

ObjectUnsupportedException

at line line 80
float getDiscount()

Return Value

float

Exceptions

ObjectUnsupportedException

at line line 90
setDiscount( float $discount)

Parameters

float $discount

Exceptions

ObjectUnsupportedException