eZPublish(LegacyStack)  5.1
feed.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Variables

if(!is_dir(dirname($cacheFilePath))) $cacheFile = eZClusterFileHandler::instance( $cacheFilePath )
 
 $cacheFilePath = $cacheDir . '/rss/' . md5( $currentSiteAccessName . $feedName ) . '.xml'
 
 $cacheTime = intval( $config->variable( 'RSSSettings', 'CacheTime' ) )
 
if(!$RSSExport) $config = eZINI::instance( 'site.ini' )
 
 $currentSiteAccessName = $GLOBALS['eZCurrentAccess']['name']
 
if(!isset($Params['RSSFeed'])) $feedName = $Params['RSSFeed']
 
 $httpCharset = eZTextCodec::httpCharset()
 
 $lastModified = gmdate( 'D, d M Y H:i:s', time() ) . ' GMT'
 
 $Module = $Params['Module']
 
if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) $rssContent = $cacheFile->fetchContents()
 
 $RSSExport = eZRSSExport::fetchByName( $feedName )
 
if($RSSExport->attribute(
'rss_version')=== 'ATOM')
header( 'Content-Type 
charset
 
if($cacheTime<=0) else
 

Variable Documentation

$cacheFilePath = $cacheDir . '/rss/' . md5( $currentSiteAccessName . $feedName ) . '.xml'
$cacheTime = intval( $config->variable( 'RSSSettings', 'CacheTime' ) )
if (!$RSSExport) $config = eZINI::instance( 'site.ini' )
$currentSiteAccessName = $GLOBALS['eZCurrentAccess']['name']
if (!isset($Params['RSSFeed'])) $feedName = $Params['RSSFeed']
$httpCharset = eZTextCodec::httpCharset()
$lastModified = gmdate( 'D, d M Y H:i:s', time() ) . ' GMT'
$Module = $Params['Module']
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) $rssContent = $cacheFile->fetchContents()
$RSSExport = eZRSSExport::fetchByName( $feedName )
if ($RSSExport->attribute( 'rss_version')=== 'ATOM') header( 'Content-Type charset
Initial value:
=' . $httpCharset );
else
header( 'Content-Type: application/rss+xml

Referenced by ezpClusterGateway\__construct(), and ezpDfsMySQLiClusterGateway\connect().

if (!$cacheFile->exists() or(time()-$cacheFile->mtime() > $cacheTime)) else
Initial value:
{
$cacheDir = eZSys::cacheDirectory()
static cacheDirectory()
Returns the current cache directory.
Definition: ezsys.php:525