eZPublish  4.5
eZCurrencyData Class Reference
+ Inheritance diagram for eZCurrencyData:
+ Collaboration diagram for eZCurrencyData:

Public Member Functions

 eZCurrencyData ($row)
 
 invalidateRateValue ()
 
 isActive ()
 
 rateValue ()
 
 setStatus ($status)
 
 store ($fieldFilters=null)
 
- Public Member Functions inherited from eZPersistentObject
 attribute ($attr, $noFunction=false)
 
 attributes ()
 
 eZPersistentObject ($row)
 
 fill ($row)
 
 hasAttribute ($attr)
 
 hasDirtyData ()
 
 remove ($conditions=null, $extraConditions=null)
 
 setAttribute ($attr, $val)
 
 setHasDirtyData ($hasDirtyData)
 
 store ($fieldFilters=null)
 
 sync ($fieldFilters=null)
 

Static Public Member Functions

static canCreate ($code)
 
static create ($code, $symbol, $locale, $autoRateValue, $customRateValue, $rateFactor, $status=self::STATUS_ACTIVE)
 
static currencyExists ($code)
 
static definition ()
 
static errorMessage ($errorCode)
 
static fetch ($currencyCode, $asObject=true)
 
static fetchList ($conditions=null, $asObjects=true, $offset=false, $limit=false, $asHash=true)
 
static fetchListCount ($conditions=null)
 
static removeCurrencyList ($currencyCodeList)
 
static statusStringToNumeric ($statusString)
 
static validateCurrencyCode ($code)
 
- Static Public Member Functions inherited from eZPersistentObject
static conditionText ($conditions)
 
static conditionTextByRow ($conditions, $row)
 
static count ($def, $conds=null, $field=null)
 
static definition ()
 
static escapeArray ($array)
 
static fetchObject ($def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 
static fetchObjectList ($def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null, $custom_tables=null, $custom_conds=null)
 
static getShortAttributeName ($db, $def, $attrName)
 
static handleRows ($rows, $class_name, $asObject)
 
static newObjectOrder ($def, $orderField, $conditions)
 
static removeObject ($def, $conditions=null, $extraConditions=null)
 
static reorderObject ($def, $orderField, $conditions, $down=true)
 
static swapRow ($table, $keys, $order_id, $rows, $id1, $id2)
 
static updateObjectList ($parameters)
 

Public Attributes

 $RateValue
 
const DEFAULT_AUTO_RATE_VALUE = '0.0000'
 
const DEFAULT_CUSTOM_RATE_VALUE = '0.0000'
 
const DEFAULT_RATE_FACTOR_VALUE = '1.0000'
 
const ERROR_CURRENCY_EXISTS = 3
 
const ERROR_INVALID_CURRENCY_CODE = 2
 
const ERROR_OK = 0
 
const ERROR_UNKNOWN = 1
 
const STATUS_ACTIVE = '1'
 
const STATUS_INACTIVE = '2'
 
- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Member Function Documentation

static eZCurrencyData::canCreate (   $code)
static
static eZCurrencyData::create (   $code,
  $symbol,
  $locale,
  $autoRateValue,
  $customRateValue,
  $rateFactor,
  $status = self::STATUS_ACTIVE 
)
static
static eZCurrencyData::currencyExists (   $code)
static
static eZCurrencyData::definition ( )
static
static eZCurrencyData::errorMessage (   $errorCode)
static
eZCurrencyData::eZCurrencyData (   $row)

Referenced by create().

static eZCurrencyData::fetch (   $currencyCode,
  $asObject = true 
)
static
static eZCurrencyData::fetchList (   $conditions = null,
  $asObjects = true,
  $offset = false,
  $limit = false,
  $asHash = true 
)
static

codeList can be a single code like 'USD' or an array like array( 'USD', 'NOK' ) or 'false' (means all currencies).

Referenced by currencyForLocale(), eZCurrencyConverter\currencyList(), eZMultiPrice\currencyList(), fetch(), eZShopFunctionCollection\fetchCurrencyList(), and eZShopFunctions\updateAutoRates().

static eZCurrencyData::fetchListCount (   $conditions = null)
static
eZCurrencyData::invalidateRateValue ( )

Referenced by store().

eZCurrencyData::isActive ( )
eZCurrencyData::rateValue ( )

functional attribute

static eZCurrencyData::removeCurrencyList (   $currencyCodeList)
static
eZCurrencyData::setStatus (   $status)
static eZCurrencyData::statusStringToNumeric (   $statusString)
static
eZCurrencyData::store (   $fieldFilters = null)
static eZCurrencyData::validateCurrencyCode (   $code)
static

Referenced by canCreate().

Member Data Documentation

eZCurrencyData::$RateValue

Referenced by rateValue().

const eZCurrencyData::DEFAULT_AUTO_RATE_VALUE = '0.0000'
const eZCurrencyData::DEFAULT_CUSTOM_RATE_VALUE = '0.0000'
const eZCurrencyData::DEFAULT_RATE_FACTOR_VALUE = '1.0000'
const eZCurrencyData::ERROR_CURRENCY_EXISTS = 3
const eZCurrencyData::ERROR_INVALID_CURRENCY_CODE = 2
const eZCurrencyData::ERROR_OK = 0
const eZCurrencyData::ERROR_UNKNOWN = 1
const eZCurrencyData::STATUS_ACTIVE = '1'
const eZCurrencyData::STATUS_INACTIVE = '2'

The documentation for this class was generated from the following file: