class TaxRule extends AbstractModel

Class TaxRule

Properties

int $id from AbstractModel
int $taxRuleGroupId
TaxRuleGroup $taxRuleGroup
int $countryId
Country $country
int $stateId
State $state
int $taxId
Tax $tax
int $behavior

Methods

static  null|AbstractModel
getById($id)

Get Range by id.

static  boolean
isMultiShop()

No description

static  boolean
isMultiShopFK()

No description

static  AbstractModel
create()

Create new instance of Pimcore Object.

static  AbstractModel|null
getByShopId($id, null $shopId = null)

No description

static  null|AbstractModel
getByField( string $field, string $value, int $shopId = null)

Get Range by id.

static  AbstractListing
getList()

get listing class.

static  AbstractModel[]
getAll()

Get all objects form this type.

int
getId()

No description

setId( int $id)

No description

string
getCacheKey()

No description

save()

save model to database.

bool
delete()

delete model.

getLocalizedFields()

Get LocalizedFields Provider.

setLocalizedFields($localizedFields)

Get LocalizedFields Provider.

AbstractModel
setValue($key, $value)

Override setValue function to support localized fields.

string
__toString()

No description

array
__sleep()

Prepare object to goto sleep.

__wakeup()

Prepare object to wakeup.

int
getBehavior()

No description

setBehavior( int $behavior)

No description

int
getTaxRuleGroupId()

No description

setTaxRuleGroupId( int $taxRuleGroupId)

No description

getTaxRuleGroup()

No description

setTaxRuleGroup( int|TaxRuleGroup $taxRuleGroup)

No description

int
getCountryId()

No description

setCountryId( int $countryId)

No description

getCountry()

No description

setCountry( int|Country $country)

No description

int
getStateId()

No description

setStateId( int $stateId)

No description

getState()

No description

setState( int|State $state)

No description

int
getTaxId()

No description

setTaxId( int $taxId)

No description

Tax
getTax()

No description

setTax( int|Tax $tax)

No description

Details

in AbstractModel at line line 72
static null|AbstractModel getById($id)

Get Range by id.

Parameters

$id

Return Value

null|AbstractModel

in AbstractModel at line line 80
static boolean isMultiShop()

Return Value

boolean

in AbstractModel at line line 94
static boolean isMultiShopFK()

Return Value

boolean

in AbstractModel at line line 112
static AbstractModel create()

Create new instance of Pimcore Object.

Return Value

AbstractModel

Exceptions

Exception

in AbstractModel at line line 122
static AbstractModel|null getByShopId($id, null $shopId = null)

Parameters

$id
null $shopId

Return Value

AbstractModel|null

in AbstractModel at line line 170
static null|AbstractModel getByField( string $field, string $value, int $shopId = null)

Get Range by id.

Parameters

string $field
string $value
int $shopId

Return Value

null|AbstractModel

in AbstractModel at line line 223
static AbstractListing getList()

get listing class.

Return Value

AbstractListing

Exceptions

Exception

in AbstractModel at line line 243
static AbstractModel[] getAll()

Get all objects form this type.

Return Value

AbstractModel[]

in AbstractModel at line line 253
int getId()

Return Value

int

in AbstractModel at line line 261
setId( int $id)

Parameters

int $id

in AbstractModel at line line 269
string getCacheKey()

Return Value

string

in AbstractModel at line line 277
save()

save model to database.

in AbstractModel at line line 294
bool delete()

delete model.

Return Value

bool

in AbstractModel at line line 310
LocalizedFields|null getLocalizedFields()

Get LocalizedFields Provider.

Return Value

LocalizedFields|null

in AbstractModel at line line 329
setLocalizedFields($localizedFields)

Get LocalizedFields Provider.

Parameters

$localizedFields

in AbstractModel at line line 342
AbstractModel setValue($key, $value)

Override setValue function to support localized fields.

Parameters

$key
$value

Return Value

AbstractModel

at line line 73
string __toString()

Return Value

string

in AbstractModel at line line 370
array __sleep()

Prepare object to goto sleep.

Return Value

array

in AbstractModel at line line 390
__wakeup()

Prepare object to wakeup.

at line line 85
int getBehavior()

Return Value

int

at line line 93
setBehavior( int $behavior)

Parameters

int $behavior

at line line 101
int getTaxRuleGroupId()

Return Value

int

at line line 109
setTaxRuleGroupId( int $taxRuleGroupId)

Parameters

int $taxRuleGroupId

at line line 117
TaxRuleGroup getTaxRuleGroup()

Return Value

TaxRuleGroup

at line line 131
setTaxRuleGroup( int|TaxRuleGroup $taxRuleGroup)

Parameters

int|TaxRuleGroup $taxRuleGroup

Exceptions

Exception

at line line 144
int getCountryId()

Return Value

int

at line line 152
setCountryId( int $countryId)

Parameters

int $countryId

at line line 160
Country getCountry()

Return Value

Country

at line line 174
setCountry( int|Country $country)

Parameters

int|Country $country

Exceptions

Exception

at line line 187
int getStateId()

Return Value

int

at line line 195
setStateId( int $stateId)

Parameters

int $stateId

at line line 203
State getState()

Return Value

State

at line line 217
setState( int|State $state)

Parameters

int|State $state

Exceptions

Exception

at line line 230
int getTaxId()

Return Value

int

at line line 238
setTaxId( int $taxId)

Parameters

int $taxId

at line line 246
Tax getTax()

Return Value

Tax

at line line 260
setTax( int|Tax $tax)

Parameters

int|Tax $tax

Exceptions

Exception