OXID eShop CE
4.10.4
|
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 () | |
Public Member Functions inherited from oxBase | |
getUseSkipSaveFields () | |
setUseSkipSaveFields ($blUseSkipSaveFields) | |
__set ($sName, $sValue) | |
__get ($sName) | |
__isset ($mVar) | |
__clone () | |
oxClone ($oObject) | |
getUpdateSeo () | |
setUpdateSeo ($blUpdateSeo) | |
init ($sTableName=null, $blForceAllFields=false) | |
assign ($dbRecord) | |
getClassName () | |
getCoreTableName () | |
getId () | |
setId ($sOXID=null) | |
setShopId ($iShopId) | |
getShopId () | |
getViewName ($blForceCoreTableUsage=null) | |
modifyCacheKey ($sCacheKey, $blOverride=false) | |
disableLazyLoading () | |
isDerived () | |
setIsDerived ($blVal) | |
isMultilang () | |
load ($sOXID) | |
isLoaded () | |
buildSelectString ($aWhere=null) | |
assignRecord ($sSelect) | |
getFieldData ($sFieldName) | |
getSelectFields ($blForceCoreTableUsage=null) | |
allowDerivedUpdate () | |
allowDerivedDelete () | |
exists ($sOXID=null) | |
getSqlActiveSnippet ($blForceCoreTable=null) | |
beforeUpdate ($sOXID=null) | |
onChange ($iAction=null, $sOXID=null) | |
setInList () | |
isOx () | |
isReadOnly () | |
setReadOnly ($blReadOnly) | |
getFieldNames () | |
addFieldName ($sName) | |
getLanguage () | |
Public Member Functions inherited from oxSuperCfg | |
__call ($sMethod, $aArgs) | |
getConfig () | |
setConfig ($oConfig) | |
getSession () | |
setSession ($oSession) | |
getUser () | |
setUser ($oUser) | |
isAdmin () | |
setAdminMode ($blAdmin) |
Protected Member Functions | |
_getArticleSelect () | |
_loadFirstArticles (oxList $oRecommList, $aIds) | |
_getSearchSelect ($sSearchStr) | |
Protected Member Functions inherited from oxBase | |
_setUpdateSeoOnFieldChange ($sField) | |
_removeElement2ShopRelations ($sOxId) | |
_isInList () | |
_getObjectViewName ($sTable, $sShopID=null) | |
_getTableFields ($sTable, $blReturnSimple=false) | |
_getAllFields ($blReturnSimple=false) | |
_initDataStructure ($blForceFullStructure=false) | |
_getNonCachedFieldNames ($blForceFullStructure=false) | |
_getFieldStatus ($sFieldName) | |
_addField ($sName, $iStatus, $sType=null, $sLength=null) | |
_getFieldLongName ($sFieldName) | |
_setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT) | |
_canFieldBeNull ($sFieldName) | |
_getFieldDefaultValue ($sFieldName) | |
_getUpdateFieldValue ($sFieldName, $oField) | |
_getUpdateFields ($blUseSkipSaveFields=true) | |
_update () | |
_insert () | |
_isDisabledFieldCache () | |
_addSkippedSaveFieldsForMapping () | |
_disableLazyLoadingForCaching () |
Protected Attributes | |
$_sClassName = 'oxRecommList' | |
$_oArticles = null | |
$_sArticlesFilter = '' | |
$_aSeoUrls = array() | |
Protected Attributes inherited from oxBase | |
$_sOXID = null | |
$_iShopId = null | |
$_blIsSimplyClonable = true | |
$_sClassName = 'oxbase' | |
$_sCoreTable = null | |
$_sViewTable = null | |
$_aFieldNames = array('oxid' => 0) | |
$_sCacheKey = null | |
$_blUseLazyLoading = false | |
$_aSkipSaveFields = array('oxtimestamp') | |
$_blUseSkipSaveFields = true | |
$_sExistKey = 'oxid' | |
$_blIsDerived = null | |
$_blIsSeoObject = false | |
$_blUpdateSeo = true | |
$_blReadOnly = false | |
$_blIsInList = false | |
$_isLoaded = false | |
$_aInnerLazyCache = null | |
$_blEmployMultilanguage = false |
Additional Inherited Members | |
Static Protected Attributes inherited from oxBase | |
static | $_blDisableFieldCaching = array() |
Recommendation list manager class.
Definition at line 8 of file oxrecommlist.php.
oxRecommList::__construct | ( | ) |
Class constructor, initiates parent constructor (parent::oxBase()).
Reimplemented from oxBase.
Definition at line 44 of file oxrecommlist.php.
|
protected |
|
protected |
Returns the appropriate SQL select according to search parameters
string | $sSearchStr | Search string |
Definition at line 359 of file oxrecommlist.php.
|
protected |
loads first articles to recomm list also ordering them and clearing not usable list objects ordering priorities:
oxList | $oRecommList | recommendation list |
array | $aIds | article ids |
Definition at line 270 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 196 of file oxrecommlist.php.
oxRecommList::addToRatingAverage | ( | $iRating | ) |
Calculates and saves product rating average
integer | $iRating | new rating value |
Definition at line 377 of file oxrecommlist.php.
oxRecommList::delete | ( | $sOXID = null | ) |
Removes articles from the recommlist and deletes list
string | $sOXID | Object ID(default null) |
Reimplemented from oxBase.
Definition at line 131 of file oxrecommlist.php.
oxRecommList::getArtCount | ( | ) |
Returns count of recommendation list items
Definition at line 83 of file oxrecommlist.php.
oxRecommList::getArtDescription | ( | $sOXID | ) |
Returns article description for recommendation list
string | $sOXID | Object ID |
Definition at line 158 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 59 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 411 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 471 of file oxrecommlist.php.
oxRecommList::getFirstArticle | ( | ) |
returns first article from this list's article list
Definition at line 114 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 428 of file oxrecommlist.php.
oxRecommList::getRecommListsByIds | ( | $aArticleIds | ) |
get recommendation lists which include given article ids also sort these lists by these criteria:
array | $aArticleIds | Object IDs |
Definition at line 221 of file oxrecommlist.php.
oxRecommList::getReviews | ( | ) |
Collects user written reviews about an article.
Definition at line 391 of file oxrecommlist.php.
oxRecommList::getSearchRecommListCount | ( | $sSearchStr | ) |
Returns the amount of lists according to search parameters.
string | $sSearchStr | Search string |
Definition at line 338 of file oxrecommlist.php.
oxRecommList::getSearchRecommLists | ( | $sSearchStr | ) |
Returns user recommendation list objects
string | $sSearchStr | Search string |
Definition at line 310 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 453 of file oxrecommlist.php.
oxRecommList::removeArticle | ( | $sOXID | ) |
Remove article from recommendation list
string | $sOXID | Object ID |
Definition at line 177 of file oxrecommlist.php.
oxRecommList::save | ( | ) |
Save this Object to database, insert or update as needed.
Reimplemented from oxBase.
Definition at line 497 of file oxrecommlist.php.
oxRecommList::setArticlesFilter | ( | $sArticlesFilter | ) |
set sql filter for article loading
string | $sArticlesFilter | article filter |
Definition at line 487 of file oxrecommlist.php.
|
protected |
Definition at line 37 of file oxrecommlist.php.
|
protected |
Definition at line 23 of file oxrecommlist.php.
|
protected |
Definition at line 30 of file oxrecommlist.php.
|
protected |
Definition at line 16 of file oxrecommlist.php.