

Definition at line 7 of file oxarticlelist.php.
Public Member Functions | |
| setCustomSorting ($sSorting) | |
| enableSelectLists () | |
| selectString ($sSelect) | |
| loadHistoryArticles ($sArtId) | |
| loadNewestArticles ($iLimit=null) | |
| loadTop5Articles () | |
| loadAktionArticles ($sActionID) | |
| loadArticleCrossSell ($sArticleId) | |
| loadArticleAccessoires ($sArticleId) | |
| loadCategoryIds ($sCatId, $aSessionFilter) | |
| loadCategoryArticles ($sCatId, $aSessionFilter, $iLimit=null) | |
| loadRecommArticles ($sRecommId, $sArticlesFilter=null) | |
| loadRecommArticleIds ($sRecommId, $sArticlesFilter) | |
| loadSearchIds ($sSearchStr= '', $sSearchCat= '', $sSearchVendor= '', $sSearchManufacturer= '') | |
| loadPriceIds ($dPriceFrom, $dPriceTo) | |
| loadPriceArticles ($dPriceFrom, $dPriceTo, $oCategory=null) | |
| loadVendorIDs ($sVendorId) | |
| loadManufacturerIDs ($sManufacturerId) | |
| loadVendorArticles ($sVendorId, $oVendor=null) | |
| loadManufacturerArticles ($sManufacturerId, $oManufacturer=null) | |
| loadTagArticles ($sTag, $iLang) | |
| getTagArticleIds ($sTag, $iLang) | |
| loadIds ($aIds) | |
| loadOrderArticles ($aOrders) | |
| loadStockRemindProducts ($aBasketContents) | |
Protected Member Functions | |
| _sortByIds ($aIds) | |
| _sortByOrderMapCallback ($key1, $key2) | |
| _getArticleSelect ($sRecommId, $sArticlesFilter=null) | |
| _createIdListFromSql ($sSql) | |
| _getFilterIdsSql ($sCatId, $aFilter) | |
| _getFilterSql ($sCatId, $aFilter) | |
| _getCategorySelect ($sFields, $sCatId, $aSessionFilter) | |
| _getSearchSelect ($sSearchString) | |
| _getPriceSelect ($dPriceFrom, $dPriceTo) | |
| _getVendorSelect ($sVendorId) | |
| _getManufacturerSelect ($sManufacturerId) | |
Protected Attributes | |
| $_sCustomSorting | |
| $_sObjectsInListName = 'oxarticle' | |
| $_blLoadSelectLists = false | |
| $_blLoadPrice = true | |
| oxArticleList.setCustomSorting | ( | $ | sSorting | ) | 
Set Custom Sorting, simply an order by....
| string | $sSorting Custom sorting | 
Definition at line 42 of file oxarticlelist.php.
| oxArticleList.enableSelectLists | ( | ) | 
Call enableSelectLists() for loading select lists in lst articles
Definition at line 55 of file oxarticlelist.php.
| oxArticleList.selectString | ( | $ | sSelect | ) | 
Loads selectlists for each artile in list if they exists Returns true on success.
| string | $sSelect SQL select string | 
Reimplemented from oxList.
Definition at line 68 of file oxarticlelist.php.
| oxArticleList.loadHistoryArticles | ( | $ | sArtId | ) | 
Loads up to 4 history (normally recently seen) articles from session, and adds $sArtId to history. Returns article id array.
| string | $sArtId Article ID | 
Definition at line 89 of file oxarticlelist.php.
| oxArticleList._sortByIds | ( | $ | aIds | ) |  [protected] | 
        
sort this list by given order.
| array | $aIds ordered ids | 
Definition at line 122 of file oxarticlelist.php.
| oxArticleList._sortByOrderMapCallback | ( | $ | key1, | |
| $ | key2 | |||
| ) |  [protected] | 
        
callback function only used from _sortByIds
| string | $key1 1st key | |
| string | $key2 2nd key | 
Definition at line 138 of file oxarticlelist.php.
| oxArticleList.loadNewestArticles | ( | $ |  iLimit = null           | 
          ) | 
Loads newest shops articles from DB.
| int | $iLimit Select limit | 
Definition at line 170 of file oxarticlelist.php.
| oxArticleList.loadTop5Articles | ( | ) | 
| oxArticleList.loadAktionArticles | ( | $ | sActionID | ) | 
Loads shop AktionArticles.
| string | $sActionID Action id | 
Definition at line 250 of file oxarticlelist.php.
| oxArticleList.loadArticleCrossSell | ( | $ | sArticleId | ) | 
Loads article crosssellings
| string | $sArticleId Article id | 
Definition at line 285 of file oxarticlelist.php.
| oxArticleList.loadArticleAccessoires | ( | $ | sArticleId | ) | 
Loads article accessoires
| string | $sArticleId Article id | 
Definition at line 321 of file oxarticlelist.php.
| oxArticleList.loadCategoryIds | ( | $ | sCatId, | |
| $ | aSessionFilter | |||
| ) | 
Loads only ID's and create Fake objects for cmp_categories.
| string | $sCatId Category tree ID | |
| array | $aSessionFilter Like array ( catid => array( attrid => value,...)) | 
Definition at line 352 of file oxarticlelist.php.
| oxArticleList.loadCategoryArticles | ( | $ | sCatId, | |
| $ | aSessionFilter, | |||
| $ |  iLimit = null | |||
| ) | 
Loads articles for the give Category
| string | $sCatId Category tree ID | |
| array | $aSessionFilter Like array ( catid => array( attrid => value,...)) | |
| int | $iLimit Limit | 
Definition at line 369 of file oxarticlelist.php.
| oxArticleList.loadRecommArticles | ( | $ | sRecommId, | |
| $ |  sArticlesFilter = null | |||
| ) | 
Loads articles for the recommlist
| string | $sRecommId Recommlist ID | |
| string | $sArticlesFilter Additional filter for recommlist's items | 
Definition at line 407 of file oxarticlelist.php.
| oxArticleList.loadRecommArticleIds | ( | $ | sRecommId, | |
| $ | sArticlesFilter | |||
| ) | 
Loads only ID's and create Fake objects.
| string | $sRecommId Recommlist ID | |
| string | $sArticlesFilter Additional filter for recommlist's items | 
Definition at line 421 of file oxarticlelist.php.
| oxArticleList._getArticleSelect | ( | $ | sRecommId, | |
| $ |  sArticlesFilter = null | |||
| ) |  [protected] | 
        
Returns the appropriate SQL select
| string | $sRecommId Recommlist ID | |
| string | $sArticlesFilter Additional filter for recommlist's items | 
Definition at line 440 of file oxarticlelist.php.
| oxArticleList.loadSearchIds | ( | $ |  sSearchStr = '',  | 
        |
| $ |  sSearchCat = '',  | 
        |||
| $ |  sSearchVendor = '',  | 
        |||
| $ |  sSearchManufacturer = '' | |||
| ) | 
Loads only ID's and create Fake objects for cmp_categories.
| string | $sSearchStr Search string | |
| string | $sSearchCat Search within category | |
| string | $sSearchVendor Search within vendor | |
| string | $sSearchManufacturer Search within manufacturer | 
Definition at line 462 of file oxarticlelist.php.
| oxArticleList.loadPriceIds | ( | $ | dPriceFrom, | |
| $ | dPriceTo | |||
| ) | 
Loads Id list of appropriate price products
| float | $dPriceFrom Starting price | |
| float | $dPriceTo Max price | 
Definition at line 524 of file oxarticlelist.php.
| oxArticleList.loadPriceArticles | ( | $ | dPriceFrom, | |
| $ | dPriceTo, | |||
| $ |  oCategory = null | |||
| ) | 
Loads articles, that price is bigger than passed $dPriceFrom and smaller than passed $dPriceTo. Returns count of selected articles.
| double | $dPriceFrom Price from | |
| double | $dPriceTo Price to | |
| object | $oCategory Active category object | 
Definition at line 540 of file oxarticlelist.php.
| oxArticleList.loadVendorIDs | ( | $ | sVendorId | ) | 
Loads Products for specified vendor
| string | $sVendorId Vendor id | 
Definition at line 569 of file oxarticlelist.php.
| oxArticleList.loadManufacturerIDs | ( | $ | sManufacturerId | ) | 
Loads Products for specified Manufacturer
| string | $sManufacturerId Manufacturer id | 
Definition at line 582 of file oxarticlelist.php.
| oxArticleList.loadVendorArticles | ( | $ | sVendorId, | |
| $ |  oVendor = null | |||
| ) | 
Loads articles that belongs to vendor, passed by parameter $sVendorId. Returns count of selected articles.
| string | $sVendorId Vendor ID | |
| object | $oVendor Active vendor object | 
Definition at line 597 of file oxarticlelist.php.
| oxArticleList.loadManufacturerArticles | ( | $ | sManufacturerId, | |
| $ |  oManufacturer = null | |||
| ) | 
Loads articles that belongs to Manufacturer, passed by parameter $sManufacturerId. Returns count of selected articles.
| string | $sManufacturerId Manufacturer ID | |
| object | $oManufacturer Active Manufacturer object | 
Definition at line 614 of file oxarticlelist.php.
| oxArticleList.loadTagArticles | ( | $ | sTag, | |
| $ | iLang | |||
| ) | 
Loads a list of articles having
| string | $sTag Searched tag | |
| int | $iLang Active language | 
Definition at line 630 of file oxarticlelist.php.
| oxArticleList.getTagArticleIds | ( | $ | sTag, | |
| $ | iLang | |||
| ) | 
Returns array of article ids belonging to current tags
| string | $sTag current tag | |
| int | $iLang active language | 
Definition at line 673 of file oxarticlelist.php.
| oxArticleList.loadIds | ( | $ | aIds | ) | 
Load the list by article ids
| array | $aIds Article ID array | 
Definition at line 710 of file oxarticlelist.php.
| oxArticleList.loadOrderArticles | ( | $ | aOrders | ) | 
Loads the article list by orders ids
| array | $aOrders user orders array | 
Definition at line 739 of file oxarticlelist.php.
| oxArticleList._createIdListFromSql | ( | $ | sSql | ) |  [protected] | 
        
fills the list simply with keys of the oxid and the position as value for the given sql
| string | $sSql SQL select | 
Definition at line 777 of file oxarticlelist.php.
| oxArticleList._getFilterIdsSql | ( | $ | sCatId, | |
| $ | aFilter | |||
| ) |  [protected] | 
        
Returns sql to fetch ids of articles fitting current filter
| string | $sCatId category id | |
| array | $aFilter filters for this category | 
Definition at line 797 of file oxarticlelist.php.
| oxArticleList._getFilterSql | ( | $ | sCatId, | |
| $ | aFilter | |||
| ) |  [protected] | 
        
Returns filtered articles sql "oxid in (filtered ids)" part
| string | $sCatId category id | |
| array | $aFilter filters for this category | 
Definition at line 835 of file oxarticlelist.php.
| oxArticleList._getCategorySelect | ( | $ | sFields, | |
| $ | sCatId, | |||
| $ | aSessionFilter | |||
| ) |  [protected] | 
        
Creates SQL Statement to load Articles, etc.
| string | $sFields Fields which are loaded e.g. "oxid" or "*" etc. | |
| string | $sCatId Category tree ID | |
| array | $aSessionFilter Like array ( catid => array( attrid => value,...)) | 
Definition at line 866 of file oxarticlelist.php.
| oxArticleList._getSearchSelect | ( | $ | sSearchString | ) |  [protected] | 
        
Forms and returns SQL query string for search in DB.
| string | $sSearchString searching string | 
Definition at line 902 of file oxarticlelist.php.
| oxArticleList._getPriceSelect | ( | $ | dPriceFrom, | |
| $ | dPriceTo | |||
| ) |  [protected] | 
        
Builds SQL for selecting articles by price
| double | $dPriceFrom Starting price | |
| double | $dPriceTo Max price | 
Definition at line 979 of file oxarticlelist.php.
| oxArticleList._getVendorSelect | ( | $ | sVendorId | ) |  [protected] | 
        
Builds vendor select SQL statement
| string | $sVendorId Vendor ID | 
Definition at line 1018 of file oxarticlelist.php.
| oxArticleList._getManufacturerSelect | ( | $ | sManufacturerId | ) |  [protected] | 
        
Builds Manufacturer select SQL statement
| string | $sManufacturerId Manufacturer ID | 
Definition at line 1041 of file oxarticlelist.php.
| oxArticleList.loadStockRemindProducts | ( | $ | aBasketContents | ) | 
Loads list of low stock state products
| array | $aBasketContents product ids array | 
Definition at line 1064 of file oxarticlelist.php.
oxArticleList.$_sCustomSorting [protected]           | 
        
Definition at line 12 of file oxarticlelist.php.
oxArticleList.$_sObjectsInListName = 'oxarticle' [protected]           | 
        
oxArticleList.$_blLoadSelectLists = false [protected]           | 
        
Definition at line 26 of file oxarticlelist.php.
oxArticleList.$_blLoadPrice = true [protected]           | 
        
Definition at line 33 of file oxarticlelist.php.
 1.5.5