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

Public Member Functions

 eZMultiPriceData ($row)
 
- 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 changeCurrency ($oldCurrencyCode, $newCurrencyCode, $currentVersionOnly=true)
 
static create ($contentObjectID, $contentObjectVersion, $currencyCode, $value, $type)
 
static createPriceListForCurrency ($currencyCode)
 
static definition ()
 
static fetch ($contentAttributeID, $contentObjectVersion, $currencyCode=false, $type=false, $asObjects=true)
 
static fetchDataListWithoutPriceInCurrency ($currencyCode, $limit=false)
 
static removeByID ($id)
 
static removeByOAID ($objectAttributeID, $objectAttributeVersion=null)
 
static removePriceListForCurrency ($currencyCodeList, $currentVersionOnly=true)
 
static updateAutoprices ()
 
- 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

const ERROR_AUTOPRICES_UPDATE_FAILED = 1
 
const ERROR_OK = 0
 
const FETCH_DATA_LIST_LIMIT = 5000
 
const VALUE_TYPE_AUTO = 2
 
const VALUE_TYPE_CUSTOM = 1
 
- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Member Function Documentation

static eZMultiPriceData::changeCurrency (   $oldCurrencyCode,
  $newCurrencyCode,
  $currentVersionOnly = true 
)
static
static eZMultiPriceData::create (   $contentObjectID,
  $contentObjectVersion,
  $currencyCode,
  $value,
  $type 
)
static
static eZMultiPriceData::createPriceListForCurrency (   $currencyCode)
static
static eZMultiPriceData::definition ( )
static

Referenced by fetch(), removeByID(), and removeByOAID().

eZMultiPriceData::eZMultiPriceData (   $row)

Referenced by create().

static eZMultiPriceData::fetch (   $contentAttributeID,
  $contentObjectVersion,
  $currencyCode = false,
  $type = false,
  $asObjects = true 
)
static

codeList - specifies currencies to fetch. If 'false' then all prices for '$contentAttributeID/$contentObjectVersion' will be retrieved.

Referenced by eZMultiPrice\priceList().

static eZMultiPriceData::fetchDataListWithoutPriceInCurrency (   $currencyCode,
  $limit = false 
)
static
static eZMultiPriceData::removeByID (   $id)
static

removes single record from 'ezmultipricedata' table

static eZMultiPriceData::removeByOAID (   $objectAttributeID,
  $objectAttributeVersion = null 
)
static

remove

Referenced by eZMultiPrice\removeByID().

static eZMultiPriceData::removePriceListForCurrency (   $currencyCodeList,
  $currentVersionOnly = true 
)
static
static eZMultiPriceData::updateAutoprices ( )
static

Member Data Documentation

const eZMultiPriceData::ERROR_AUTOPRICES_UPDATE_FAILED = 1
const eZMultiPriceData::ERROR_OK = 0
const eZMultiPriceData::FETCH_DATA_LIST_LIMIT = 5000
const eZMultiPriceData::VALUE_TYPE_AUTO = 2
const eZMultiPriceData::VALUE_TYPE_CUSTOM = 1

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