OXID eShop CE
4.9.11
|
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 (oxArticleList $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 = array() |
Additional Inherited Members | |
Static Protected Attributes inherited from oxSuperCfg | |
static | $_oConfig = null |
static | $_oSession = null |
static | $_oRights = null |
static | $_oActUser = null |
static | $_blIsAdmin = null |
Rss feed manager loads needed rss data
Definition at line 8 of file oxrssfeed.php.
|
protected |
Delete the file, given by its path.
string | $sFilePath | The path of the file we want to delete. |
Definition at line 932 of file oxrssfeed.php.
|
protected |
_getArticleItems create channel items from article list
oxArticleList | $oList | article list |
protected
Definition at line 201 of file oxrssfeed.php.
|
protected |
_getCacheId retrieve cache id
string | $name | cache name |
protected
Definition at line 122 of file oxrssfeed.php.
|
protected |
Returns string built from category titles
oxCategory | $oCat | category object |
Definition at line 480 of file oxrssfeed.php.
|
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 |
protected
Definition at line 159 of file oxrssfeed.php.
|
protected |
loads object and returns specified field
string | $sId | object id |
string | $sObject | object class |
string | $sField | object field to be taken |
protected
Definition at line 603 of file oxrssfeed.php.
|
protected |
make rss data array from given oxlist
oxList | $oList | recommlist object |
Definition at line 753 of file oxrssfeed.php.
|
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 |
protected
Definition at line 629 of file oxrssfeed.php.
|
protected |
_getSearchParamsUrl return search parameters for url
string | $sSearch | search string |
string | $sCatId | category id |
string | $sVendorId | vendor id |
string | $sManufacturerId | Manufacturer id |
protected
Definition at line 575 of file oxrssfeed.php.
|
protected |
_getShopUrl returns shop home url
protected
Definition at line 298 of file oxrssfeed.php.
|
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 |
protected
Definition at line 325 of file oxrssfeed.php.
|
protected |
_loadFromCache load data from cache, requires Rss data Id
string | $name | Rss data Id |
protected
Definition at line 137 of file oxrssfeed.php.
|
protected |
_prepareFeedName adds shop name to feed title
string | $sTitle | page title |
protected
Definition at line 285 of file oxrssfeed.php.
|
protected |
_prepareUrl make url from uri
string | $sUri | standard uri |
string | $sTitle | page title |
protected
Definition at line 262 of file oxrssfeed.php.
|
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 |
protected
Definition at line 185 of file oxrssfeed.php.
oxRssFeed::getBargainTitle | ( | ) |
getBargainTitle get title for 'Bargain' rss feed
public
Definition at line 869 of file oxrssfeed.php.
oxRssFeed::getBargainUrl | ( | ) |
getBargainUrl get url for 'Bargain' rss feed
public
Definition at line 884 of file oxrssfeed.php.
oxRssFeed::getCacheTtl | ( | ) |
Returns timestamp of defind cache time to live
Definition at line 920 of file oxrssfeed.php.
oxRssFeed::getCategoryArticlesTitle | ( | oxCategory | $oCat | ) |
get title for 'Category Articles' rss feed
oxCategory | $oCat | category object |
public
Definition at line 464 of file oxrssfeed.php.
oxRssFeed::getCategoryArticlesUrl | ( | oxCategory | $oCat | ) |
getCategoryArticlesUrl get url for 'Category Articles' rss feed
oxCategory | $oCat | category object |
public
Definition at line 504 of file oxrssfeed.php.
oxRssFeed::getChannel | ( | ) |
oxRssFeed::getNewestArticlesTitle | ( | ) |
get title for 'Newest Shop Articles' rss feed
public
Definition at line 409 of file oxrssfeed.php.
oxRssFeed::getNewestArticlesUrl | ( | ) |
getNewestArticlesUrl get url for 'Newest Shop Articles' rss feed
public
Definition at line 424 of file oxrssfeed.php.
oxRssFeed::getRecommListArticlesTitle | ( | oxRecommList | $oRecommList | ) |
get title for 'Recommendation list articles' rss feed
oxRecommList | $oRecommList | recomm list to load articles from |
Definition at line 809 of file oxrssfeed.php.
oxRssFeed::getRecommListArticlesUrl | ( | oxRecommList | $oRecommList | ) |
get url for 'Recommendation lists' rss feed
oxRecommList | $oRecommList | recomm list to load articles from |
Definition at line 824 of file oxrssfeed.php.
oxRssFeed::getRecommListsTitle | ( | oxArticle | $oArticle | ) |
get title for 'Recommendation lists' rss feed
oxArticle | $oArticle | load lists for this article |
Definition at line 720 of file oxrssfeed.php.
oxRssFeed::getRecommListsUrl | ( | oxArticle | $oArticle | ) |
get url for 'Recommendation lists' rss feed
oxArticle | $oArticle | load lists for this article |
Definition at line 735 of file oxrssfeed.php.
oxRssFeed::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 |
public
Definition at line 558 of file oxrssfeed.php.
oxRssFeed::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 |
public
Definition at line 666 of file oxrssfeed.php.
oxRssFeed::getTopInShopTitle | ( | ) |
getTopShopTitle get title for 'Top of the Shop' rss feed
public
Definition at line 355 of file oxrssfeed.php.
oxRssFeed::getTopInShopUrl | ( | ) |
getTopShopUrl get url for 'Top of the Shop' rss feed
public
Definition at line 370 of file oxrssfeed.php.
oxRssFeed::loadBargain | ( | ) |
loadBargain loads 'Bargain' rss data
public
Definition at line 896 of file oxrssfeed.php.
oxRssFeed::loadCategoryArticles | ( | oxCategory | $oCat | ) |
loadCategoryArticles loads 'Category Articles' rss data
oxCategory | $oCat | category object |
public
Definition at line 523 of file oxrssfeed.php.
oxRssFeed::loadNewestArticles | ( | ) |
loadNewestArticles loads 'Newest Shop Articles' rss data
public
Definition at line 436 of file oxrssfeed.php.
oxRssFeed::loadRecommListArticles | ( | oxRecommList | $oRecommList | ) |
loads 'Recommendation lists' rss data
oxRecommList | $oRecommList | recomm list to load articles from |
Definition at line 842 of file oxrssfeed.php.
oxRssFeed::loadRecommLists | ( | oxArticle | $oArticle | ) |
loads 'Recommendation lists' rss data
oxArticle | $oArticle | load lists for this article |
Definition at line 777 of file oxrssfeed.php.
oxRssFeed::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 |
public
Definition at line 689 of file oxrssfeed.php.
oxRssFeed::loadTopInShop | ( | ) |
loadTopShop loads 'Top of the Shop' rss data
public
Definition at line 382 of file oxrssfeed.php.
oxRssFeed::mapOxActionToFileCache | ( | $sOxActionId | ) |
Give back the cache file name for the given oxActionId.
string | $sOxActionId | The oxaction we want the cache file name for. |
Definition at line 41 of file oxrssfeed.php.
oxRssFeed::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. |
Definition at line 74 of file oxrssfeed.php.
|
protected |
Definition at line 32 of file oxrssfeed.php.
const oxRssFeed::CACHE_TTL = 10800 |
timeout in seconds for regenerating data (3h)
Definition at line 14 of file oxrssfeed.php.
const oxRssFeed::RSS_ARTRECOMMLISTS = 'RSS_ARTRECOMMLISTS' |
Definition at line 22 of file oxrssfeed.php.
const oxRssFeed::RSS_BARGAIN = 'RSS_Bargain' |
Definition at line 24 of file oxrssfeed.php.
const oxRssFeed::RSS_CATARTS = 'RSS_CatArts' |
Definition at line 21 of file oxrssfeed.php.
const oxRssFeed::RSS_NEWARTS = 'RSS_NewArts' |
Definition at line 20 of file oxrssfeed.php.
const oxRssFeed::RSS_RECOMMLISTARTS = 'RSS_RECOMMLISTARTS' |
Definition at line 23 of file oxrssfeed.php.
const oxRssFeed::RSS_TOPSHOP = 'RSS_TopShop' |
Rss data Ids for cache
Definition at line 19 of file oxrssfeed.php.