class Country extends AbstractModel

Class Country

Properties

int $id from AbstractModel
string $isoCode
string $name
int $active
Currency $currency
int $currencyId
bool $useStoreCurrency
int $zoneId
Zone $zone
string $addressFormat
int[] $shopIds

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.

static  Country|null
getByIsoCode($isoCode)

Get Currency by ISO-Code.

static  array
getActiveCountries( int $shopId = null)

Gets all active Countries.

string
formatAddress( Address $address, bool $asHtml = true)

No description

mixed
getAddressFields()

No description

string
getIsoCode()

No description

setIsoCode($isoCode)

No description

string
getName()

No description

setName($name)

No description

int
getActive()

No description

setActive($active)

No description

getCurrency()

No description

setCurrency($currency)

No description

int
getCurrencyId()

No description

setCurrencyId($currencyId)

No description

getZone()

No description

setZone($zone)

No description

int
getZoneId()

No description

setZoneId($zoneId)

No description

bool
getUseStoreCurrency()

No description

setUseStoreCurrency( bool $useStoreCurrency)

No description

string
getAddressFormat()

No description

setAddressFormat( string $addressFormat)

No description

int[]
getShopIds()

No description

setShopIds( int[] $shopIds)

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 146
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 90
static Country|null getByIsoCode($isoCode)

Get Currency by ISO-Code.

Parameters

$isoCode

Return Value

Country|null

at line line 101
static array getActiveCountries( int $shopId = null)

Gets all active Countries.

Parameters

int $shopId

Return Value

array

at line line 117
string formatAddress( Address $address, bool $asHtml = true)

Parameters

Address $address
bool $asHtml

Return Value

string

at line line 134
mixed getAddressFields()

Return Value

mixed

at line line 154
string getIsoCode()

Return Value

string

at line line 162
setIsoCode($isoCode)

Parameters

$isoCode

at line line 170
string getName()

Return Value

string

at line line 178
setName($name)

Parameters

$name

at line line 186
int getActive()

Return Value

int

at line line 194
setActive($active)

Parameters

$active

at line line 209
Currency getCurrency()

Return Value

Currency

at line line 227
setCurrency($currency)

Parameters

$currency

Exceptions

Exception

at line line 240
int getCurrencyId()

Return Value

int

at line line 250
setCurrencyId($currencyId)

Parameters

$currencyId

Exceptions

Exception

at line line 258
Zone getZone()

Return Value

Zone

at line line 272
setZone($zone)

Parameters

$zone

Exceptions

Exception

at line line 285
int getZoneId()

Return Value

int

at line line 295
setZoneId($zoneId)

Parameters

$zoneId

Exceptions

Exception

at line line 303
bool getUseStoreCurrency()

Return Value

bool

at line line 311
setUseStoreCurrency( bool $useStoreCurrency)

Parameters

bool $useStoreCurrency

at line line 319
string getAddressFormat()

Return Value

string

at line line 327
setAddressFormat( string $addressFormat)

Parameters

string $addressFormat

at line line 335
int[] getShopIds()

Return Value

int[]

at line line 343
setShopIds( int[] $shopIds)

Parameters

int[] $shopIds