Enumerations | |
enum | wc_inc_path |
Functions | |
generateFeed ($wiki, $title, $lang, $fullContent, $feedType) | |
Variables | |
$file_path = __FILE__ | |
$path = dirname(__FILE__).'/' | |
$ini = new ini(wc_inc_path.'/conf/config.ini') | |
$title = isset($_GET['title']) ? varGet('title') : '' | |
$lang = isset($_GET['lang']) ? varGet('lang') : wc_default_lang | |
$fullContent = isset($_GET['full_content']) ? true : false | |
$feedType = isset($_GET['feed_type']) ? varGet('feed_type') : wc_feed_format | |
$id = 'feed-'.$title.'-'.$lang.'-'.$fullContent.'-'.$feedType | |
$cacheDir = wc_inc_path.wc_cache_path.'/' | |
$options | |
$cacheLite = new Cache_Lite($options) | |
$wikiRenderer = new WikiRenderer(new WiclearWikiRendererConfig()) | |
$con = new mysql(wc_db_host, wc_db_login, wc_db_password, wc_db_database) | |
$feed = generateFeed($wiki, $title, $lang, $fullContent, $feedType) | |
break | |
case | __pad2__ |
break | |
case | __pad3__ |
break |
A feed is generated to inform feed readers about the last changements in the site.
The generated feed can be in 3 formats :
The feed can contains the whole content or just a small sentence indicating the changement. This is controlled by the HTML GET variable "full_content".
The generated feed can be site wide, or related to a particular page. In that case, the history of the page is served as a feed. This is controlled by the HTML GET variable "title".
Finally the lang can be controlled. The lang controlled in one of the lang available for the content. We're not talking about ui lang here (it doesn't make sense). It is controlled by the HTML GET variable "lang".
$options |
Initial value:
array( 'cacheDir' => $cacheDir, 'lifeTime' => 60*60 )