Inheritance diagram for oxRecommList:
Collaboration diagram for oxRecommList:Public Member Functions | |
| __construct () | |
| getArticles ($iStart=null, $iNrofArticles=null, $blReload=false) | |
| getArtCount () | |
| getFirstArticle () | |
| delete ($sOXID=null) | |
| getArtDescription ($sOXID) | |
| removeArticle ($sOXID) | |
| addArticle ($sOXID, $sDesc) | |
| getRecommListsByIds ($aArticleIds) | |
| getSearchRecommLists ($sSearchStr) | |
| getSearchRecommListCount ($sSearchStr) | |
| addToRatingAverage ($iRating) | |
| getReviews () | |
| getBaseSeoLink ($iLang, $iPage=0) | |
| getLink ($iLang=null) | |
| getStdLink ($iLang=null, $aParams=array()) | |
| getBaseStdLink ($iLang, $blAddId=true, $blFull=true) | |
| setArticlesFilter ($sArticlesFilter) | |
| save () | |
Protected Member Functions | |
| _getArticleSelect () | |
| _loadFirstArticles (oxList $oRecommList, $aIds) | |
| _getSearchSelect ($sSearchStr) | |
Protected Attributes | |
| $_sClassName = 'oxRecommList' | |
| $_oArticles = null | |
| $_sArticlesFilter = '' | |
| $_aSeoUrls = array() | |
Recommendation list manager class.
Definition at line 6 of file oxrecommlist.php.
| oxRecommList.__construct | ( | ) |
Class constructor, initiates parent constructor (parent.oxBase()).
Definition at line 41 of file oxrecommlist.php.
| oxRecommList._getArticleSelect | ( | ) | [protected] |
| oxRecommList._getSearchSelect | ( | $ | sSearchStr | ) | [protected] |
Returns the appropriate SQL select according to search parameters
| string | $sSearchStr Search string |
Definition at line 348 of file oxrecommlist.php.
| oxRecommList._loadFirstArticles | ( | oxList $ | oRecommList, | |
| $ | aIds | |||
| ) | [protected] |
loads first articles to recomm list also ordering them and clearing not usable list objects ordering priorities: 1. first show articles from our search 2. do not shown articles as 1st, which are shown in other recomm lists as 1st
| oxList | $oRecommList recommendation list | |
| array | $aIds article ids |
Definition at line 260 of file oxrecommlist.php.
| oxRecommList.addArticle | ( | $ | sOXID, | |
| $ | sDesc | |||
| ) |
Add article to recommendation list
| string | $sOXID Object ID | |
| string | $sDesc recommended article description |
Definition at line 185 of file oxrecommlist.php.
| oxRecommList.addToRatingAverage | ( | $ | iRating | ) |
Calculates and saves product rating average
| integer | $iRating new rating value |
Definition at line 368 of file oxrecommlist.php.
| oxRecommList.delete | ( | $ | sOXID = null |
) |
Removes articles from the recommlist and deletes list
| string | $sOXID Object ID(default null) |
Definition at line 126 of file oxrecommlist.php.
| oxRecommList.getArtCount | ( | ) |
Returns count of recommendation list items
Definition at line 80 of file oxrecommlist.php.
| oxRecommList.getArtDescription | ( | $ | sOXID | ) |
Returns article description for recommendation list
| string | $sOXID Object ID |
Definition at line 150 of file oxrecommlist.php.
| oxRecommList.getArticles | ( | $ | iStart = null, |
|
| $ | iNrofArticles = null, |
|||
| $ | blReload = false | |||
| ) |
Returns list of recommendation list items
| integer | $iStart start for sql limit | |
| integer | $iNrofArticles nr of items per page | |
| bool | $blReload if TRUE forces to reload list |
Definition at line 56 of file oxrecommlist.php.
| oxRecommList.getBaseSeoLink | ( | $ | iLang, | |
| $ | iPage = 0 | |||
| ) |
Returns raw recommlist seo url
| int | $iLang language id | |
| int | $iPage page number [optional] |
Definition at line 401 of file oxrecommlist.php.
| oxRecommList.getBaseStdLink | ( | $ | iLang, | |
| $ | blAddId = true, |
|||
| $ | blFull = true | |||
| ) |
Returns base dynamic recommlist url: shopurl/index.php?cl=recommlist
| int | $iLang language id | |
| bool | $blAddId add current object id to url or not | |
| bool | $blFull return full including domain name [optional] |
Implements oxIUrl.
Definition at line 460 of file oxrecommlist.php.
| oxRecommList.getFirstArticle | ( | ) |
returns first article from this list's article list
Definition at line 110 of file oxrecommlist.php.
| oxRecommList.getLink | ( | $ | iLang = null |
) |
return url to this recomm list page
| int | $iLang language id [optional] |
Implements oxIUrl.
Definition at line 417 of file oxrecommlist.php.
| oxRecommList.getRecommListsByIds | ( | $ | aArticleIds | ) |
get recommendation lists wich include given article ids also sort these lists by these criterias: 1. show lists, that has more requested articles first 2. show lists, that have more any articles
| array | $aArticleIds Object IDs |
Definition at line 209 of file oxrecommlist.php.
| oxRecommList.getReviews | ( | ) |
Collects user written reviews about an article.
Definition at line 382 of file oxrecommlist.php.
| oxRecommList.getSearchRecommListCount | ( | $ | sSearchStr | ) |
Returns the amount of lists according to search parameters.
| string | $sSearchStr Search string |
Definition at line 328 of file oxrecommlist.php.
| oxRecommList.getSearchRecommLists | ( | $ | sSearchStr | ) |
Returns user recommendation list objects
| string | $sSearchStr Search string |
Definition at line 300 of file oxrecommlist.php.
| oxRecommList.getStdLink | ( | $ | iLang = null, |
|
| $ | aParams = array() | |||
| ) |
Returns standard (dynamic) object URL
| int | $iLang language id [optional] | |
| array | $aParams additional params to use [optional] |
Implements oxIUrl.
Definition at line 442 of file oxrecommlist.php.
| oxRecommList.removeArticle | ( | $ | sOXID | ) |
Remove article from recommendation list
| string | $sOXID Object ID |
Definition at line 168 of file oxrecommlist.php.
| oxRecommList.save | ( | ) |
Save this Object to database, insert or update as needed.
Definition at line 488 of file oxrecommlist.php.
| oxRecommList.setArticlesFilter | ( | $ | sArticlesFilter | ) |
set sql filter for article loading
| string | $sArticlesFilter article filter |
Definition at line 478 of file oxrecommlist.php.
oxRecommList.$_aSeoUrls = array() [protected] |
Definition at line 34 of file oxrecommlist.php.
oxRecommList.$_oArticles = null [protected] |
Definition at line 20 of file oxrecommlist.php.
oxRecommList.$_sArticlesFilter = '' [protected] |
Definition at line 27 of file oxrecommlist.php.
oxRecommList.$_sClassName = 'oxRecommList' [protected] |
Definition at line 13 of file oxrecommlist.php.
1.7.1