Public Member Functions | 
|   | __construct () | 
|   | getCountryId ($oUser) | 
|   | forceReload () | 
|   | getArticleDiscounts ($oArticle, $oUser=null) | 
|   | getBasketItemDiscounts ($oArticle, $oBasket, $oUser=null) | 
|   | getBasketDiscounts ($oBasket, $oUser=null) | 
|   | getBasketItemBundleDiscounts ($oArticle, $oBasket, $oUser=null) | 
|   | getBasketBundleDiscounts ($oBasket, $oUser=null) | 
|   | hasSkipDiscountCategories () | 
|   | offsetExists ($offset) | 
|   | offsetGet ($offset) | 
|   | offsetSet ($offset, $oBase) | 
|   | offsetUnset ($offset) | 
|   | arrayKeys () | 
|   | rewind () | 
|   | current () | 
|   | key () | 
|   | prev () | 
|   | next () | 
|   | valid () | 
|   | count () | 
|   | clear () | 
|   | assign ($aArray) | 
|   | reverse () | 
|   | __construct ($sObjectName=null) | 
|   | __get ($sName) | 
|   | getArray () | 
|   | init ($sObjectName, $sCoreTable=null) | 
|   | getBaseObject () | 
|   | setBaseObject ($oObject) | 
|   | selectString ($sSql) | 
|   | add ($oObject) | 
|   | assignArray ($aData) | 
|   | setSqlLimit ($iStart, $iRecords) | 
|   | containsFieldValue ($oVal, $sFieldName) | 
|   | getList () | 
|   | __call ($sMethod, $aArgs) | 
|   | getConfig () | 
|   | setConfig ($oConfig) | 
|   | getSession () | 
|   | setSession ($oSession) | 
|   | getUser () | 
|   | setUser ($oUser) | 
|   | isAdmin () | 
|   | setAdminMode ($blAdmin) | 
Detailed Description
Discount list manager. Organizes list of discount objects. 
Definition at line 8 of file oxdiscountlist.php.
Constructor & Destructor Documentation
      
        
          | oxDiscountList::__construct  | 
          ( | 
           | ) | 
           | 
        
      
 
 
Member Function Documentation
  
  
      
        
          | oxDiscountList::_getFilterSelect  | 
          ( | 
            | 
          $oUser | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Creates discount list filter SQL to load current state discount list
- Parameters
 - 
  
  
 
- Returns
 - string 
 
Definition at line 103 of file oxdiscountlist.php.
 
 
  
  
      
        
          | oxDiscountList::_getList  | 
          ( | 
            | 
          $oUser = null | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Initializes current state discount list For iterating through the list, use getArray() on the list, as iterating on object itself can cause concurrency problems.
- Parameters
 - 
  
    | object | $oUser | user object (optional) | 
  
   
- Returns
 - array 
 
Definition at line 52 of file oxdiscountlist.php.
 
 
      
        
          | oxDiscountList::forceReload  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | oxDiscountList::getArticleDiscounts  | 
          ( | 
            | 
          $oArticle,  | 
        
        
           | 
           | 
            | 
          $oUser = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Returns array of discounts that can be globally (transparently) applied
- Parameters
 - 
  
    | object | $oArticle | article object  | 
    | object | $oUser | oxuser object (optional) | 
  
   
- Returns
 - array 
 
Definition at line 165 of file oxdiscountlist.php.
 
 
      
        
          | oxDiscountList::getBasketBundleDiscounts  | 
          ( | 
            | 
          $oBasket,  | 
        
        
           | 
           | 
            | 
          $oUser = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Returns array of basket bundle discounts
- Parameters
 - 
  
    | oxbasket | $oBasket | oxbasket object  | 
    | oxuser | $oUser | oxuser object (optional) | 
  
   
- Returns
 - array 
 
Definition at line 251 of file oxdiscountlist.php.
 
 
      
        
          | oxDiscountList::getBasketDiscounts  | 
          ( | 
            | 
          $oBasket,  | 
        
        
           | 
           | 
            | 
          $oUser = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Returns array of discounts that can be applied for whole basket
- Parameters
 - 
  
    | object | $oBasket | basket  | 
    | object | $oUser | user object (optional) | 
  
   
- Returns
 - array 
 
Definition at line 208 of file oxdiscountlist.php.
 
 
      
        
          | oxDiscountList::getBasketItemBundleDiscounts  | 
          ( | 
            | 
          $oArticle,  | 
        
        
           | 
           | 
            | 
          $oBasket,  | 
        
        
           | 
           | 
            | 
          $oUser = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Returns array of bundle discounts that can be applied for whole basket
- Parameters
 - 
  
    | object | $oArticle | article object  | 
    | object | $oBasket | basket  | 
    | object | $oUser | user object (optional) | 
  
   
- Returns
 - array 
 
Definition at line 230 of file oxdiscountlist.php.
 
 
      
        
          | oxDiscountList::getBasketItemDiscounts  | 
          ( | 
            | 
          $oArticle,  | 
        
        
           | 
           | 
            | 
          $oBasket,  | 
        
        
           | 
           | 
            | 
          $oUser = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Returns array of discounts that can be applied for individual basket item
- Parameters
 - 
  
    | mixed | $oArticle | article object or article id (according to needs)  | 
    | object | $oBasket | array of basket items containing article id, amount and price  | 
    | object | $oUser | user object (optional) | 
  
   
- Returns
 - array 
 
Definition at line 187 of file oxdiscountlist.php.
 
 
      
        
          | oxDiscountList::getCountryId  | 
          ( | 
            | 
          $oUser | ) | 
           | 
        
      
 
Returns user country id for for discount selection
- Parameters
 - 
  
    | oxuser | $oUser | oxuser object | 
  
   
- Returns
 - string 
 
Definition at line 78 of file oxdiscountlist.php.
 
 
      
        
          | oxDiscountList::hasSkipDiscountCategories  | 
          ( | 
           | ) | 
           | 
        
      
 
Checks if any category has "skip discounts" status
- Returns
 - bool 
 
Definition at line 269 of file oxdiscountlist.php.
 
 
Member Data Documentation
  
  
      
        
          | oxDiscountList::$_blReload = true | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | oxDiscountList::$_hasSkipDiscountCategories = null | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | oxDiscountList::$_sUserId = null | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: