comment_feed.php File Reference

generates comment 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') : ''
 $fullContent = isset($_GET['full_content']) ? true : false
 $feedType = isset($_GET['feed_type']) ? varGet('feed_type') : wc_feed_format
 $lang = isset($_GET['lang']) ? varGet('lang') : wc_default_lang
 $id = 'comment_feed-'.$title.'-'.$lang.'-'.$fullContent.'-'.$feedType
 $cacheDir = wc_inc_path.wc_cache_path.'/'
 $options
 $cacheLite = new Cache_Lite($options)
 $con = new mysql(wc_db_host, wc_db_login, wc_db_password, wc_db_database)
 $feed = generateFeed($wiki, $title, $lang, $fullContent, $feedType)
 break
case __pad0__
 break
case __pad1__
 break


Detailed Description

generates comment feed from the site

A feed is generated to inform feed readers about the last comments 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, all comments 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