Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/inri/public_html/daCode-HEAD/daCode/src/phplib/backends.php3
daCode -

Backends

Backends

All function which are able to get infos from outside will be here

 

private class Backends

All function which are able to get infos from outside will be here
This is mostly a package holding very similar functions
All must take 1 parameter: an integer with a default value, which is the
number of hadlines to get;
All shall return a string, formatted with HTML::sidebox
The better thing to do if you want to create your own backend is to
cut'n'paste, using Backends::generic()

daCode http://www.dacode.org/
src/phplib/backends.php3
$Id: backends.php3,v 1.75 2002/05/14 21:11:08 jbcombes Exp $

Depends: Config Utils Html Cache

 

Public Method Summary

void

Backends()

Class constructor
string

agenda([ integer $nb ])

Get agenda from Lolix
string

kernel()

Prints information on current Linux kernels
string

linuxfr([ integer $nb ])

LinuxFR News (fr)
string

dacodeorg([ integer $nb ])

daCode.org (en/fr)
string

jesuislibre([ integer $nb ])

JeSuisLibre (fr)
string

lolixfr([ integer $nb ])

Lolix France (fr)
string

slashdot([ integer $nb ])

Slashdot News (en)
string

freshmeat([ integer $nb ])

Freshmeat.net (en)
string

rfc([ integer $nb ])

Latest RFCs (en)
string

techmag([ integer $nb ])

Techmag (fr)
string

nospoon([ integer $nb ])

NoSpoon.org (fr)
string

segfault([ integer $nb ])

Segfault (en)
string

linuxtoday([ integer $nb ])

LinuxToday (en)
string

debianplanet([ integer $nb ])

Debian Planet (en)
string

advogato([ integer $nb ])

Advogato (en)
string

dotkde([ integer $nb ])

KDE Dot News (en)
string

gnomenews([ integer $nb ])

Gnome News (en)
string

mozillanewsbot([ integer $nb ])

Mozilla NewsBot (en)
string

mozillazine([ integer $nb ])

MozillaZine (en)
string

phpinfonet([ integer $nb ])

phpInfo.net (fr)
string

phpindex([ integer $nb ])

PHPIndex (fr)
string

phpbuilder([ integer $nb ])

PHPBuilder (en)
string

useperl([ integer $nb ])

Use Perl; (en)
string

fsffrance([ integer $nb ])

FSF France (fr)
string

cipherwar([ integer $nb ])

Cipherwar (en)
string

emacsfr([ integer $nb ])

Emacsfr (fr)
string

gnusfr([ integer $nb ])

GnusFr (fr)

Private Method Summary

string

generic(integer $nb, integer $ttl, string $url_site, string $title_site, string $template, [ string $delim, boolean $striphtml, boolean $raw, boolean $show_url, string $url_web ])

Generic function to extract informations from external websites

Private Field Summary

unknown

$html

Public Method Details

Backends

public void Backends( )

  Class constructor

Returns void


agenda

public string agenda( [ integer $nb ] )

  Get agenda from Lolix
http://agenda.lolix.org/backend/backend-full.php3
FIXME: misbehaviour when agenda.lolix.org is unreachable.
Shall prompt for a rewrite of this->generic.

Parameter
integer $nb = >>5<<
of dates ti retrive
Returns string

the sidebox with the next nb events.


kernel

public string kernel( )

  Prints information on current Linux kernels

Returns string

the sidebox with the next nb events.


linuxfr

public string linuxfr( [ integer $nb ] )

  LinuxFR News (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


dacodeorg

public string dacodeorg( [ integer $nb ] )

  daCode.org (en/fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


jesuislibre

public string jesuislibre( [ integer $nb ] )

  JeSuisLibre (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


lolixfr

public string lolixfr( [ integer $nb ] )

  Lolix France (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


slashdot

public string slashdot( [ integer $nb ] )

  Slashdot News (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


freshmeat

public string freshmeat( [ integer $nb ] )

  Freshmeat.net (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


rfc

public string rfc( [ integer $nb ] )

  Latest RFCs (en)

Parameter
integer $nb = >>5<<
of items it retrive
Returns string

the sidebox with the next nb events.


techmag

public string techmag( [ integer $nb ] )

  Techmag (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


nospoon

public string nospoon( [ integer $nb ] )

  NoSpoon.org (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


segfault

public string segfault( [ integer $nb ] )

  Segfault (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


linuxtoday

public string linuxtoday( [ integer $nb ] )

  LinuxToday (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


debianplanet

public string debianplanet( [ integer $nb ] )

  Debian Planet (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


advogato

public string advogato( [ integer $nb ] )

  Advogato (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


dotkde

public string dotkde( [ integer $nb ] )

  KDE Dot News (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


gnomenews

public string gnomenews( [ integer $nb ] )

  Gnome News (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


mozillanewsbot

public string mozillanewsbot( [ integer $nb ] )

  Mozilla NewsBot (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


mozillazine

public string mozillazine( [ integer $nb ] )

  MozillaZine (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


phpinfonet

public string phpinfonet( [ integer $nb ] )

  phpInfo.net (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


phpindex

public string phpindex( [ integer $nb ] )

  PHPIndex (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


phpbuilder

public string phpbuilder( [ integer $nb ] )

  PHPBuilder (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


useperl

public string useperl( [ integer $nb ] )

  Use Perl; (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


fsffrance

public string fsffrance( [ integer $nb ] )

  FSF France (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


cipherwar

public string cipherwar( [ integer $nb ] )

  Cipherwar (en)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


emacsfr

public string emacsfr( [ integer $nb ] )

  Emacsfr (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


gnusfr

public string gnusfr( [ integer $nb ] )

  GnusFr (fr)

Parameter
integer $nb = >>10<<
of items it retrive
Returns string

the sidebox with the next nb events.


Private Method Details

generic

private string generic( integer $nb, integer $ttl, string $url_site, string $title_site, string $template, [ string $delim, boolean $striphtml, boolean $raw, boolean $show_url, string $url_web ] )

  Generic function to extract informations from external websites

Parameter
integer $nb
number of items
integer $ttl
duration of cached file
string $url_site
URL of backend file
string $title_site
title of website
string $template
string describing how items must be rendered, with $x being replaced by x-th line of input
string $delim = >>"%%"<<
separator between items
boolean $striphtml = >>false<<
Removes html tags
boolean $raw = >>false<<
if set, text is returned without decoration
boolean $show_url = >>true<<
if set, the boxtitle will be an url, else no
string $url_web = >>""<<
if not empty, used in the boxtitle
Returns string

the HTML


Private Field Details

$html

private unknown $html

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta