Recommendation list manager class.
- Deprecated:
- since v5.3 (2016-06-17); Listmania will be moved to an own module.
◆ __construct()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::__construct |
( |
| ) |
|
Class constructor, initiates parent constructor (parent::oxBase()).
◆ _getArticleSelect()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::_getArticleSelect |
( |
| ) |
|
|
protected |
Returns the appropriate SQL select
- Returns
- string
◆ _getSearchSelect()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::_getSearchSelect |
( |
|
$sSearchStr | ) |
|
|
protected |
Returns the appropriate SQL select according to search parameters
- Parameters
-
string | $sSearchStr | Search string |
- Returns
- string
◆ _loadFirstArticles()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::_loadFirstArticles |
( |
\OxidEsales\Eshop\Core\Model\ListModel |
$oRecommList, |
|
|
|
$aIds |
|
) |
| |
|
protected |
loads first articles to recomm list also ordering them and clearing not usable list objects ordering priorities:
- first show articles from our search
- do not shown articles as 1st, which are shown in other recomm lists as 1st
- Parameters
-
\OxidEsales\Eshop\Core\Model\ListModel | $oRecommList | recommendation list |
array | $aIds | article ids |
◆ addArticle()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::addArticle |
( |
|
$sOXID, |
|
|
|
$sDesc |
|
) |
| |
Add article to recommendation list
- Parameters
-
string | $sOXID | Object ID |
string | $sDesc | recommended article description |
- Exceptions
-
- Returns
- bool
◆ addToRatingAverage()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::addToRatingAverage |
( |
|
$iRating | ) |
|
Calculates and saves product rating average
- Parameters
-
integer | $iRating | new rating value |
◆ delete()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::delete |
( |
|
$sOXID = null | ) |
|
Removes articles from the recommlist and deletes list
- Parameters
-
string | $sOXID | Object ID(default null) |
- Returns
- bool
◆ getArtCount()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getArtCount |
( |
| ) |
|
Returns count of recommendation list items
- Returns
- integer
◆ getArtDescription()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getArtDescription |
( |
|
$sOXID | ) |
|
Returns article description for recommendation list
- Parameters
-
- Returns
- string
◆ getArticles()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getArticles |
( |
|
$iStart = null , |
|
|
|
$iNrofArticles = null , |
|
|
|
$blReload = false |
|
) |
| |
Returns list of recommendation list items
- Parameters
-
integer | $iStart | start for sql limit |
integer | $iNrofArticles | nr of items per page |
bool | $blReload | if TRUE forces to reload list |
- Returns
- \OxidEsales\Eshop\Core\Model\ListModel
◆ getBaseSeoLink()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getBaseSeoLink |
( |
|
$iLang, |
|
|
|
$iPage = 0 |
|
) |
| |
Returns raw recommlist seo url
- Parameters
-
int | $iLang | language id |
int | $iPage | page number [optional] |
- Returns
- string
◆ getBaseStdLink()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getBaseStdLink |
( |
|
$iLang, |
|
|
|
$blAddId = true , |
|
|
|
$blFull = true |
|
) |
| |
Returns base dynamic recommlist url: shopurl/index.php?cl=recommlist
- Parameters
-
int | $iLang | language id |
bool | $blAddId | add current object id to url or not |
bool | $blFull | return full including domain name [optional] |
- Returns
- string
◆ getFirstArticle()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getFirstArticle |
( |
| ) |
|
returns first article from this list's article list
- Returns
- oxArticle
◆ getLink()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getLink |
( |
|
$iLang = null | ) |
|
return url to this recomm list page
- Parameters
-
int | $iLang | language id [optional] |
- Returns
- string
◆ getRecommListsByIds()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getRecommListsByIds |
( |
|
$aArticleIds | ) |
|
get recommendation lists which include given article ids also sort these lists by these criteria:
- show lists, that has more requested articles first
- show lists, that have more any articles
- Parameters
-
array | $aArticleIds | Object IDs |
- Returns
- \OxidEsales\Eshop\Core\Model\ListModel
◆ getReviews()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getReviews |
( |
| ) |
|
Collects user written reviews about an article.
- Returns
- \OxidEsales\Eshop\Core\Model\ListModel
◆ getSearchRecommListCount()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getSearchRecommListCount |
( |
|
$sSearchStr | ) |
|
Returns the amount of lists according to search parameters.
- Parameters
-
string | $sSearchStr | Search string |
- Returns
- int
◆ getSearchRecommLists()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getSearchRecommLists |
( |
|
$sSearchStr | ) |
|
Returns user recommendation list objects
- Parameters
-
string | $sSearchStr | Search string |
- Returns
- object oxlist with oxrecommlist objects
◆ getStdLink()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::getStdLink |
( |
|
$iLang = null , |
|
|
|
$aParams = [] |
|
) |
| |
Returns standard (dynamic) object URL
- Parameters
-
int | $iLang | language id [optional] |
array | $aParams | additional params to use [optional] |
- Returns
- string
◆ onDelete()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::onDelete |
( |
| ) |
|
|
protected |
Method is used for overriding when deleting recommendation list.
◆ onSave()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::onSave |
( |
| ) |
|
|
protected |
Method is used for overriding when saving.
◆ removeArticle()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::removeArticle |
( |
|
$sOXID | ) |
|
Remove article from recommendation list
- Parameters
-
- Returns
- bool
◆ save()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::save |
( |
| ) |
|
Save this Object to database, insert or update as needed.
- Returns
- mixed
◆ setArticlesFilter()
OxidEsales\EshopCommunity\Application\Model\RecommendationList::setArticlesFilter |
( |
|
$sArticlesFilter | ) |
|
set sql filter for article loading
- Parameters
-
string | $sArticlesFilter | article filter |
◆ $_aSeoUrls
OxidEsales\EshopCommunity\Application\Model\RecommendationList::$_aSeoUrls = [] |
|
protected |
◆ $_oArticles
OxidEsales\EshopCommunity\Application\Model\RecommendationList::$_oArticles = null |
|
protected |
◆ $_sArticlesFilter
OxidEsales\EshopCommunity\Application\Model\RecommendationList::$_sArticlesFilter = '' |
|
protected |
◆ $_sClassName
OxidEsales\EshopCommunity\Application\Model\RecommendationList::$_sClassName = 'oxRecommList' |
|
protected |
The documentation for this class was generated from the following file: