|
| setCustomSorting ($sSorting) |
|
| enableSelectLists () |
|
| selectString ($sql, array $parameters=[]) |
|
| getHistoryArticles () |
|
| setHistoryArticles ($aArticlesIds) |
|
| loadHistoryArticles ($sArtId, $iCnt=4) |
|
| sortByIds ($aIds) |
|
| loadNewestArticles ($iLimit=null) |
|
| loadTop5Articles ($iLimit=null) |
|
| loadActionArticles ($sActionID, $iLimit=null) |
|
| 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) |
|
| loadIds ($aIds) |
|
| loadOrderArticles ($aOrders) |
|
| loadStockRemindProducts ($aBasketContents) |
|
| renewPriceUpdateTime () |
|
| updateUpcomingPrices ($blForceUpdate=false) |
|
|
| _sortByOrderMapCallback ($key1, $key2) |
|
| _getArticleSelect ($sRecommId, $sArticlesFilter=null) |
|
| _createIdListFromSql ($sSql) |
|
| _getFilterIdsSql ($sCatId, $aFilter) |
|
| _getFilterSql ($sCatId, $aFilter) |
|
| _getCategorySelect ($sFields, $sCatId, $aSessionFilter) |
|
| _getCategoryCountSelect ($sCatId, $aSessionFilter) |
|
| _getSearchSelect ($sSearchString) |
|
| _getPriceSelect ($dPriceFrom, $dPriceTo) |
|
| _getVendorSelect ($sVendorId) |
|
| _getManufacturerSelect ($sManufacturerId) |
|
| _canUpdatePrices () |
|
| fetchNextUpdateTime () |
|
| getQueryToFetchNextUpdateTime () |
|
| updateOxArticles ($sCurrUpdateTime, $oDb) |
|
| getQueryToUpdateOxArticle ($sCurrUpdateTime) |
|
| updateArticles ($aUpdatedArticleIds) |
|
| getDescriptionJoin () |
|
| getSearchTableName ($table, $field) |
|
Article list manager. Collects list of article according to collection rules (categories, etc.).
◆ _canUpdatePrices()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_canUpdatePrices |
( |
| ) |
|
|
protected |
Checks if price update can be executed - current time > next price update time
- Returns
- bool
◆ _createIdListFromSql()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_createIdListFromSql |
( |
|
$sSql | ) |
|
|
protected |
fills the list simply with keys of the oxid and the position as value for the given sql
- Parameters
-
◆ _getArticleSelect()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_getArticleSelect |
( |
|
$sRecommId, |
|
|
|
$sArticlesFilter = null |
|
) |
| |
|
protected |
Returns the appropriate SQL select
- Deprecated:
- since v5.3 (2016-06-17); Listmania will be moved to an own module.
- Parameters
-
string | $sRecommId | Recommlist ID |
string | $sArticlesFilter | Additional filter for recommlist's items |
- Returns
- string
◆ _getCategoryCountSelect()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_getCategoryCountSelect |
( |
|
$sCatId, |
|
|
|
$aSessionFilter |
|
) |
| |
|
protected |
Creates SQL Statement to load Articles Count, etc.
- Parameters
-
string | $sCatId | Category tree ID |
array | $aSessionFilter | Like array ( catid => array( attrid => value,...)) |
- Returns
- string SQL
◆ _getCategorySelect()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_getCategorySelect |
( |
|
$sFields, |
|
|
|
$sCatId, |
|
|
|
$aSessionFilter |
|
) |
| |
|
protected |
Creates SQL Statement to load Articles, etc.
- Parameters
-
string | $sFields | Fields which are loaded e.g. "oxid" or "*" etc. |
string | $sCatId | Category tree ID |
array | $aSessionFilter | Like array ( catid => array( attrid => value,...)) |
- Returns
- string SQL
◆ _getFilterIdsSql()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_getFilterIdsSql |
( |
|
$sCatId, |
|
|
|
$aFilter |
|
) |
| |
|
protected |
Returns sql to fetch ids of articles fitting current filter
- Parameters
-
string | $sCatId | category id |
array | $aFilter | filters for this category |
- Returns
- string
◆ _getFilterSql()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_getFilterSql |
( |
|
$sCatId, |
|
|
|
$aFilter |
|
) |
| |
|
protected |
Returns filtered articles sql "oxid in (filtered ids)" part
- Parameters
-
string | $sCatId | category id |
array | $aFilter | filters for this category |
- Returns
- string
◆ _getManufacturerSelect()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_getManufacturerSelect |
( |
|
$sManufacturerId | ) |
|
|
protected |
Builds Manufacturer select SQL statement
- Parameters
-
- Returns
- string
◆ _getPriceSelect()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_getPriceSelect |
( |
|
$dPriceFrom, |
|
|
|
$dPriceTo |
|
) |
| |
|
protected |
Builds SQL for selecting articles by price
- Parameters
-
double | $dPriceFrom | Starting price |
double | $dPriceTo | Max price |
- Returns
- string
◆ _getSearchSelect()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_getSearchSelect |
( |
|
$sSearchString | ) |
|
|
protected |
Forms and returns SQL query string for search in DB.
- Parameters
-
string | $sSearchString | searching string |
- Returns
- string
◆ _getVendorSelect()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_getVendorSelect |
( |
|
$sVendorId | ) |
|
|
protected |
Builds vendor select SQL statement
- Parameters
-
- Returns
- string
◆ _sortByOrderMapCallback()
OxidEsales\EshopCommunity\Application\Model\ArticleList::_sortByOrderMapCallback |
( |
|
$key1, |
|
|
|
$key2 |
|
) |
| |
|
protected |
callback function only used from sortByIds
- Parameters
-
string | $key1 | 1st key |
string | $key2 | 2nd key |
- See also
- oxArticleList::sortByIds
- Returns
- int
◆ enableSelectLists()
OxidEsales\EshopCommunity\Application\Model\ArticleList::enableSelectLists |
( |
| ) |
|
◆ fetchNextUpdateTime()
OxidEsales\EshopCommunity\Application\Model\ArticleList::fetchNextUpdateTime |
( |
| ) |
|
|
protected |
Method fetches next update time for renewing price update time.
- Returns
- string
◆ getDescriptionJoin()
OxidEsales\EshopCommunity\Application\Model\ArticleList::getDescriptionJoin |
( |
| ) |
|
|
protected |
Get description join. Needed in case of searching for data in table oxartextends or its views.
- Returns
- string
◆ getHistoryArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::getHistoryArticles |
( |
| ) |
|
Get history article id's from session or cookie.
- Returns
- array
◆ getQueryToFetchNextUpdateTime()
OxidEsales\EshopCommunity\Application\Model\ArticleList::getQueryToFetchNextUpdateTime |
( |
| ) |
|
|
protected |
Returns query to fetch next update time.
- Returns
- string
◆ getQueryToUpdateOxArticle()
OxidEsales\EshopCommunity\Application\Model\ArticleList::getQueryToUpdateOxArticle |
( |
|
$sCurrUpdateTime | ) |
|
|
protected |
Method returns query to update article.
- Parameters
-
- Returns
- string
◆ getSearchTableName()
OxidEsales\EshopCommunity\Application\Model\ArticleList::getSearchTableName |
( |
|
$table, |
|
|
|
$field |
|
) |
| |
|
protected |
Get search table name. Needed in case of searching for data in table oxartextends or its views.
- Parameters
-
string | $table | |
string | $field | Chose table depending on field. |
- Returns
- string
◆ loadActionArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadActionArticles |
( |
|
$sActionID, |
|
|
|
$iLimit = null |
|
) |
| |
Loads shop AktionArticles.
- Parameters
-
string | $sActionID | Action id |
int | $iLimit | Select limit |
- Returns
- null
◆ loadArticleAccessoires()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadArticleAccessoires |
( |
|
$sArticleId | ) |
|
Loads article accessories
- Parameters
-
- Returns
- null
◆ loadArticleCrossSell()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadArticleCrossSell |
( |
|
$sArticleId | ) |
|
Loads article cross selling
- Parameters
-
- Returns
- null
◆ loadCategoryArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadCategoryArticles |
( |
|
$sCatId, |
|
|
|
$aSessionFilter, |
|
|
|
$iLimit = null |
|
) |
| |
Loads articles for the give Category
- Parameters
-
string | $sCatId | Category tree ID |
array | $aSessionFilter | Like array ( catid => array( attrid => value,...)) |
int | $iLimit | Limit |
- Returns
- integer total Count of Articles in this Category
◆ loadCategoryIds()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadCategoryIds |
( |
|
$sCatId, |
|
|
|
$aSessionFilter |
|
) |
| |
Loads only ID's and create Fake objects for cmp_categories.
- Parameters
-
string | $sCatId | Category tree ID |
array | $aSessionFilter | Like array ( catid => array( attrid => value,...)) |
◆ loadHistoryArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadHistoryArticles |
( |
|
$sArtId, |
|
|
|
$iCnt = 4 |
|
) |
| |
Loads up to 4 history (normally recently seen) articles from session, and adds $sArtId to history. Returns article id array.
- Parameters
-
string | $sArtId | Article ID |
int | $iCnt | product count |
◆ loadIds()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadIds |
( |
|
$aIds | ) |
|
Load the list by article ids
- Parameters
-
- Returns
- null;
◆ loadManufacturerArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadManufacturerArticles |
( |
|
$sManufacturerId, |
|
|
|
$oManufacturer = null |
|
) |
| |
Loads articles that belongs to Manufacturer, passed by parameter $sManufacturerId. Returns count of selected articles.
- Parameters
-
- Returns
- integer
◆ loadManufacturerIDs()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadManufacturerIDs |
( |
|
$sManufacturerId | ) |
|
◆ loadNewestArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadNewestArticles |
( |
|
$iLimit = null | ) |
|
Loads newest shops articles from DB.
- Parameters
-
◆ loadOrderArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadOrderArticles |
( |
|
$aOrders | ) |
|
Loads the article list by orders ids
- Parameters
-
array | $aOrders | user orders array |
- Returns
- null;
◆ loadPriceArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadPriceArticles |
( |
|
$dPriceFrom, |
|
|
|
$dPriceTo, |
|
|
|
$oCategory = null |
|
) |
| |
Loads articles, that price is bigger than passed $dPriceFrom and smaller than passed $dPriceTo. Returns count of selected articles.
- Parameters
-
double | $dPriceFrom | Price from |
double | $dPriceTo | Price to |
object | $oCategory | Active category object |
- Returns
- integer
◆ loadPriceIds()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadPriceIds |
( |
|
$dPriceFrom, |
|
|
|
$dPriceTo |
|
) |
| |
Loads Id list of appropriate price products
- Parameters
-
float | $dPriceFrom | Starting price |
float | $dPriceTo | Max price |
◆ loadRecommArticleIds()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadRecommArticleIds |
( |
|
$sRecommId, |
|
|
|
$sArticlesFilter |
|
) |
| |
Loads only ID's and create Fake objects.
- Deprecated:
- since v5.3 (2016-06-17); Listmania will be moved to an own module.
- Parameters
-
string | $sRecommId | Recommlist ID |
string | $sArticlesFilter | Additional filter for recommlist's items |
◆ loadRecommArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadRecommArticles |
( |
|
$sRecommId, |
|
|
|
$sArticlesFilter = null |
|
) |
| |
Loads articles for the recommlist
- Deprecated:
- since v5.3 (2016-06-17); Listmania will be moved to an own module.
- Parameters
-
string | $sRecommId | Recommlist ID |
string | $sArticlesFilter | Additional filter for recommlist's items |
◆ loadSearchIds()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadSearchIds |
( |
|
$sSearchStr = '' , |
|
|
|
$sSearchCat = '' , |
|
|
|
$sSearchVendor = '' , |
|
|
|
$sSearchManufacturer = '' |
|
) |
| |
Loads only ID's and create Fake objects for cmp_categories.
- Parameters
-
string | $sSearchStr | Search string |
string | $sSearchCat | Search within category |
string | $sSearchVendor | Search within vendor |
string | $sSearchManufacturer | Search within manufacturer |
◆ loadStockRemindProducts()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadStockRemindProducts |
( |
|
$aBasketContents | ) |
|
Loads list of low stock state products
- Parameters
-
array | $aBasketContents | product ids array |
◆ loadTop5Articles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadTop5Articles |
( |
|
$iLimit = null | ) |
|
Load top 5 articles
- Parameters
-
◆ loadVendorArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadVendorArticles |
( |
|
$sVendorId, |
|
|
|
$oVendor = null |
|
) |
| |
Loads articles that belongs to vendor, passed by parameter $sVendorId. Returns count of selected articles.
- Parameters
-
string | $sVendorId | Vendor ID |
object | $oVendor | Active vendor object |
- Returns
- integer
◆ loadVendorIDs()
OxidEsales\EshopCommunity\Application\Model\ArticleList::loadVendorIDs |
( |
|
$sVendorId | ) |
|
Loads Products for specified vendor
- Parameters
-
◆ renewPriceUpdateTime()
OxidEsales\EshopCommunity\Application\Model\ArticleList::renewPriceUpdateTime |
( |
| ) |
|
Calculates, updates and returns next price renew time
- Returns
- int
◆ selectString()
OxidEsales\EshopCommunity\Application\Model\ArticleList::selectString |
( |
|
$sql, |
|
|
array |
$parameters = [] |
|
) |
| |
In addition to the parent method, this method includes profiling.
- Parameters
-
string | $sql | SQL select statement or prepared statement |
array | $parameters | Parameters to be used in a prepared statement |
◆ setCustomSorting()
OxidEsales\EshopCommunity\Application\Model\ArticleList::setCustomSorting |
( |
|
$sSorting | ) |
|
Set Custom Sorting, simply an order by....
- Parameters
-
string | $sSorting | Custom sorting |
◆ setHistoryArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::setHistoryArticles |
( |
|
$aArticlesIds | ) |
|
Set history article id's to session or cookie
- Parameters
-
array | $aArticlesIds | array history article ids |
◆ sortByIds()
OxidEsales\EshopCommunity\Application\Model\ArticleList::sortByIds |
( |
|
$aIds | ) |
|
sort this list by given order.
- Parameters
-
◆ updateArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::updateArticles |
( |
|
$aUpdatedArticleIds | ) |
|
|
protected |
Method is used for overloading.
- Parameters
-
◆ updateOxArticles()
OxidEsales\EshopCommunity\Application\Model\ArticleList::updateOxArticles |
( |
|
$sCurrUpdateTime, |
|
|
|
$oDb |
|
) |
| |
|
protected |
Updates article.
- Parameters
-
string | $sCurrUpdateTime | |
DatabaseInterface | $oDb | |
- Returns
- mixed
◆ updateUpcomingPrices()
OxidEsales\EshopCommunity\Application\Model\ArticleList::updateUpcomingPrices |
( |
|
$blForceUpdate = false | ) |
|
Updates prices where new price > 0, update time != '0000-00-00 00:00:00' and <= CURRENT_TIMESTAMP. Returns update execution state (result of \OxidEsales\Eshop\Core\DatabaseProvider::execute())
- Parameters
-
bool | $blForceUpdate | if true, forces price update without timeout check, default value is FALSE |
- Exceptions
-
- Returns
- mixed
◆ $_blLoadSelectLists
OxidEsales\EshopCommunity\Application\Model\ArticleList::$_blLoadSelectLists = false |
|
protected |
◆ $_sCustomSorting
OxidEsales\EshopCommunity\Application\Model\ArticleList::$_sCustomSorting |
|
protected |
◆ $_sObjectsInListName
OxidEsales\EshopCommunity\Application\Model\ArticleList::$_sObjectsInListName = 'oxarticle' |
|
protected |
The documentation for this class was generated from the following file: