feed.php File Reference

generates content feed from the site More...


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


Detailed Description

generates content feed from the site

A feed is generated to inform feed readers about the last changements in the site.

format

The generated feed can be in 3 formats :

the format is controlled with the HTML GET variable "feed_type". RSS 1.0 is the default format.

content

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".

site wide or related to a particular page

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".

lang

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".

Url example


Variable Documentation

$options

Initial value:

 array(
  'cacheDir' => $cacheDir,
  'lifeTime' => 60*60
)


Generated on Mon Feb 19 19:11:58 2007 for Wiclear by  doxygen 1.4.7