eZPublish  4.5
eZUserDiscountRule Class Reference

The class eZUserDiscountRule does. More...

+ Inheritance diagram for eZUserDiscountRule:
+ Collaboration diagram for eZUserDiscountRule:

Public Member Functions

 eZUserDiscountRule ($row)
 
 removeByID ($id)
 
 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 create ($discountRuleID, $contentobjectID)
 
static definition ()
 
static fetch ($id, $asObject=true)
 
static & fetchByRuleID ($discountRuleID, $asObject=true)
 
static fetchByUserID ($userID, $asObject=true)
 
static & fetchByUserIDArray ($idArray)
 Fetches the eZDiscountRules matching an array of eZUserID. More...
 
static fetchIDListByUserID ($userID)
 
static & fetchUserID ($discountRuleID)
 
static generateIDListByUserID ($userId)
 Get raw list of discount rules. More...
 
static removeUser ($userID)
 
- 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)
 

Additional Inherited Members

- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Detailed Description

The class eZUserDiscountRule does.

Member Function Documentation

static eZUserDiscountRule::create (   $discountRuleID,
  $contentobjectID 
)
static
static eZUserDiscountRule::definition ( )
static
eZUserDiscountRule::eZUserDiscountRule (   $row)

Constructor

Referenced by create().

static eZUserDiscountRule::fetch (   $id,
  $asObject = true 
)
static
static& eZUserDiscountRule::fetchByRuleID (   $discountRuleID,
  $asObject = true 
)
static
static eZUserDiscountRule::fetchByUserID (   $userID,
  $asObject = true 
)
static
static& eZUserDiscountRule::fetchByUserIDArray (   $idArray)
static

Fetches the eZDiscountRules matching an array of eZUserID.

Parameters
array(eZUserID)$idArray Array of user ID
Returns
array(eZDiscountRule)

Referenced by eZDiscount\discountPercent(), and eZWishList\discountPercent().

static eZUserDiscountRule::fetchIDListByUserID (   $userID)
static
static& eZUserDiscountRule::fetchUserID (   $discountRuleID)
static
static eZUserDiscountRule::generateIDListByUserID (   $userId)
static

Get raw list of discount rules.

Parameters
int$userId
Returns
array

Referenced by eZUser\generateUserCacheForFile().

eZUserDiscountRule::removeByID (   $id)
static eZUserDiscountRule::removeUser (   $userID)
static
eZUserDiscountRule::store (   $fieldFilters = null)

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