OXID eShop CE
6.1.5
|
Public Member Functions | |
mapOxActionToFileCache ($sOxActionId) | |
getChannel () | |
removeCacheFile ($sName) | |
getTopInShopTitle () | |
getTopInShopUrl () | |
loadTopInShop () | |
getNewestArticlesTitle () | |
getNewestArticlesUrl () | |
loadNewestArticles () | |
getCategoryArticlesTitle (\OxidEsales\Eshop\Application\Model\Category $oCat) | |
getCategoryArticlesUrl (\OxidEsales\Eshop\Application\Model\Category $oCat) | |
loadCategoryArticles (\OxidEsales\Eshop\Application\Model\Category $oCat) | |
getSearchArticlesTitle ($sSearch, $sCatId, $sVendorId, $sManufacturerId) | |
getSearchArticlesUrl ($sSearch, $sCatId, $sVendorId, $sManufacturerId) | |
loadSearchArticles ($sSearch, $sCatId, $sVendorId, $sManufacturerId) | |
getRecommListsTitle (\OxidEsales\Eshop\Application\Model\Article $oArticle) | |
getRecommListsUrl (\OxidEsales\Eshop\Application\Model\Article $oArticle) | |
loadRecommLists (\OxidEsales\Eshop\Application\Model\Article $oArticle) | |
getRecommListArticlesTitle (\OxidEsales\Eshop\Application\Model\RecommendationList $oRecommList) | |
getRecommListArticlesUrl (\OxidEsales\Eshop\Application\Model\RecommendationList $oRecommList) | |
loadRecommListArticles (\OxidEsales\Eshop\Application\Model\RecommendationList $oRecommList) | |
getBargainTitle () | |
getBargainUrl () | |
loadBargain () | |
getCacheTtl () | |
Public Attributes | |
const | CACHE_TTL = 10800 |
const | RSS_TOPSHOP = 'RSS_TopShop' |
const | RSS_NEWARTS = 'RSS_NewArts' |
const | RSS_CATARTS = 'RSS_CatArts' |
const | RSS_ARTRECOMMLISTS = 'RSS_ARTRECOMMLISTS' |
const | RSS_RECOMMLISTARTS = 'RSS_RECOMMLISTARTS' |
const | RSS_BARGAIN = 'RSS_Bargain' |
Protected Member Functions | |
_loadBaseChannel () | |
_getCacheId ($name) | |
_loadFromCache ($name) | |
_getLastBuildDate ($name, $aData) | |
_saveToCache ($name, $aContent) | |
_getArticleItems (\OxidEsales\Eshop\Application\Model\ArticleList $oList) | |
_prepareUrl ($sUri, $sTitle) | |
_prepareFeedName ($sTitle) | |
_getShopUrl () | |
_loadData ($sTag, $sTitle, $sDesc, $aItems, $sRssUrl, $sTargetUrl=null) | |
_getCatPath ($oCat) | |
_getSearchParamsUrl ($sSearch, $sCatId, $sVendorId, $sManufacturerId) | |
_getObjectField ($sId, $sObject, $sField) | |
_getSearchParamsTranslation ($sSearch, $sId, $sCatId, $sVendorId, $sManufacturerId) | |
_getRecommListItems ($oList) | |
_deleteFile ($sFilePath) | |
Protected Attributes | |
$_aChannel = [] | |
Rss feed manager loads needed rss data
|
protected |
Delete the file, given by its path.
string | $sFilePath | The path of the file we want to delete. |
|
protected |
_getArticleItems create channel items from article list
\OxidEsales\Eshop\Application\Model\ArticleList | $oList | article list |
@access protected
|
protected |
_getCacheId retrieve cache id
string | $name | cache name |
@access protected
|
protected |
Returns string built from category titles
\OxidEsales\Eshop\Application\Model\Category | $oCat | category object |
|
protected |
_getLastBuildDate check if changed data and renew last build date if needed returns result as string
string | $name | Rss data Id |
array | $aData | channel data |
@access protected
|
protected |
loads object and returns specified field
string | $sId | object id |
string | $sObject | object class |
string | $sField | object field to be taken |
@access protected
|
protected |
make rss data array from given oxlist
\OxidEsales\Eshop\Core\Model\ListModel | $oList | recommlist object |
|
protected |
_getSearchParamsTranslation translates text for given lang id loads category and vendor to take their titles.
string | $sSearch | search param |
string | $sId | language id |
string | $sCatId | category id |
string | $sVendorId | vendor id |
string | $sManufacturerId | Manufacturer id |
@access protected
|
protected |
_getSearchParamsUrl return search parameters for url
string | $sSearch | search string |
string | $sCatId | category id |
string | $sVendorId | vendor id |
string | $sManufacturerId | Manufacturer id |
@access protected
|
protected |
_getShopUrl returns shop home url
@access protected
|
protected |
_loadBaseChannel loads basic channel data
@access protected
|
protected |
_loadData loads given data to channel
string | $sTag | tag |
string | $sTitle | object title |
string | $sDesc | object description |
array | $aItems | items data to be put to rss |
string | $sRssUrl | url of rss page |
string | $sTargetUrl | url of page rss represents |
@access protected
|
protected |
_loadFromCache load data from cache, requires Rss data Id
string | $name | Rss data Id |
@access protected
|
protected |
_prepareFeedName adds shop name to feed title
string | $sTitle | page title |
@access protected
|
protected |
_prepareUrl make url from uri
string | $sUri | standard uri |
string | $sTitle | page title |
@access protected
|
protected |
_saveToCache writes generated rss data to cache returns true on successfull write, false otherwise A successfull write means only write ok AND data has actually changed if give
string | $name | cache name |
array | $aContent | data to be saved |
@access protected
OxidEsales\EshopCommunity\Application\Model\RssFeed::getBargainTitle | ( | ) |
getBargainTitle get title for 'Bargain' rss feed
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::getBargainUrl | ( | ) |
getBargainUrl get url for 'Bargain' rss feed
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::getCacheTtl | ( | ) |
Returns timestamp of defind cache time to live
OxidEsales\EshopCommunity\Application\Model\RssFeed::getCategoryArticlesTitle | ( | \OxidEsales\Eshop\Application\Model\Category | $oCat | ) |
get title for 'Category Articles' rss feed
\OxidEsales\Eshop\Application\Model\Category | $oCat | category object |
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::getCategoryArticlesUrl | ( | \OxidEsales\Eshop\Application\Model\Category | $oCat | ) |
getCategoryArticlesUrl get url for 'Category Articles' rss feed
\OxidEsales\Eshop\Application\Model\Category | $oCat | category object |
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::getChannel | ( | ) |
getChannel retrieve channel data
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::getNewestArticlesTitle | ( | ) |
OxidEsales\EshopCommunity\Application\Model\RssFeed::getNewestArticlesUrl | ( | ) |
OxidEsales\EshopCommunity\Application\Model\RssFeed::getRecommListArticlesTitle | ( | \OxidEsales\Eshop\Application\Model\RecommendationList | $oRecommList | ) |
get title for 'Recommendation list articles' rss feed
\OxidEsales\Eshop\Application\Model\RecommendationList | $oRecommList | recomm list to load articles from |
OxidEsales\EshopCommunity\Application\Model\RssFeed::getRecommListArticlesUrl | ( | \OxidEsales\Eshop\Application\Model\RecommendationList | $oRecommList | ) |
get url for 'Recommendation lists' rss feed
\OxidEsales\Eshop\Application\Model\RecommendationList | $oRecommList | recomm list to load articles from |
OxidEsales\EshopCommunity\Application\Model\RssFeed::getRecommListsTitle | ( | \OxidEsales\Eshop\Application\Model\Article | $oArticle | ) |
get title for 'Recommendation lists' rss feed
\OxidEsales\Eshop\Application\Model\Article | $oArticle | load lists for this article |
OxidEsales\EshopCommunity\Application\Model\RssFeed::getRecommListsUrl | ( | \OxidEsales\Eshop\Application\Model\Article | $oArticle | ) |
get url for 'Recommendation lists' rss feed
\OxidEsales\Eshop\Application\Model\Article | $oArticle | load lists for this article |
OxidEsales\EshopCommunity\Application\Model\RssFeed::getSearchArticlesTitle | ( | $sSearch, | |
$sCatId, | |||
$sVendorId, | |||
$sManufacturerId | |||
) |
get title for 'Search Articles' rss feed
string | $sSearch | search string |
string | $sCatId | category id |
string | $sVendorId | vendor id |
string | $sManufacturerId | Manufacturer id |
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::getSearchArticlesUrl | ( | $sSearch, | |
$sCatId, | |||
$sVendorId, | |||
$sManufacturerId | |||
) |
getSearchArticlesUrl get url for 'Search Articles' rss feed
string | $sSearch | search string |
string | $sCatId | category id |
string | $sVendorId | vendor id |
string | $sManufacturerId | Manufacturer id |
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::getTopInShopTitle | ( | ) |
OxidEsales\EshopCommunity\Application\Model\RssFeed::getTopInShopUrl | ( | ) |
OxidEsales\EshopCommunity\Application\Model\RssFeed::loadBargain | ( | ) |
loadBargain loads 'Bargain' rss data
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::loadCategoryArticles | ( | \OxidEsales\Eshop\Application\Model\Category | $oCat | ) |
loadCategoryArticles loads 'Category Articles' rss data
\OxidEsales\Eshop\Application\Model\Category | $oCat | category object |
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::loadNewestArticles | ( | ) |
OxidEsales\EshopCommunity\Application\Model\RssFeed::loadRecommListArticles | ( | \OxidEsales\Eshop\Application\Model\RecommendationList | $oRecommList | ) |
loads 'Recommendation lists' rss data
\OxidEsales\Eshop\Application\Model\RecommendationList | $oRecommList | recomm list to load articles from |
OxidEsales\EshopCommunity\Application\Model\RssFeed::loadRecommLists | ( | \OxidEsales\Eshop\Application\Model\Article | $oArticle | ) |
loads 'Recommendation lists' rss data
\OxidEsales\Eshop\Application\Model\Article | $oArticle | load lists for this article |
OxidEsales\EshopCommunity\Application\Model\RssFeed::loadSearchArticles | ( | $sSearch, | |
$sCatId, | |||
$sVendorId, | |||
$sManufacturerId | |||
) |
loadSearchArticles loads 'Search Articles' rss data
string | $sSearch | search string |
string | $sCatId | category id |
string | $sVendorId | vendor id |
string | $sManufacturerId | Manufacturer id |
@access public
OxidEsales\EshopCommunity\Application\Model\RssFeed::loadTopInShop | ( | ) |
OxidEsales\EshopCommunity\Application\Model\RssFeed::mapOxActionToFileCache | ( | $sOxActionId | ) |
Give back the cache file name for the given oxActionId.
string | $sOxActionId | The oxaction we want the cache file name for. |
OxidEsales\EshopCommunity\Application\Model\RssFeed::removeCacheFile | ( | $sName | ) |
Expire/remove the cache file for the given action rss feed.
string | $sName | The name of the stream we want to remove from the file cache. |
|
protected |
const OxidEsales\EshopCommunity\Application\Model\RssFeed::CACHE_TTL = 10800 |
timeout in seconds for regenerating data (3h)
const OxidEsales\EshopCommunity\Application\Model\RssFeed::RSS_ARTRECOMMLISTS = 'RSS_ARTRECOMMLISTS' |
const OxidEsales\EshopCommunity\Application\Model\RssFeed::RSS_BARGAIN = 'RSS_Bargain' |
const OxidEsales\EshopCommunity\Application\Model\RssFeed::RSS_CATARTS = 'RSS_CatArts' |
const OxidEsales\EshopCommunity\Application\Model\RssFeed::RSS_NEWARTS = 'RSS_NewArts' |
const OxidEsales\EshopCommunity\Application\Model\RssFeed::RSS_RECOMMLISTARTS = 'RSS_RECOMMLISTARTS' |
const OxidEsales\EshopCommunity\Application\Model\RssFeed::RSS_TOPSHOP = 'RSS_TopShop' |
Rss data Ids for cache