[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/ -> directory.php (sommaire)

(pas de description)

Poids: 508 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 public_html/lib-common.php

Définit 7 fonctions

  DIR_lastDayOfMonth()
  DIR_topicList()
  DIR_monthLink()
  DIR_navBar()
  DIR_displayMonth()
  DIR_displayYear()
  DIR_displayAll()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

DIR_lastDayOfMonth($month, $year)   X-Ref
Helper function: Calculate last day of a given month

param: int     $month  Month
param: int     $year   Year
return: int             Number of days in that month

DIR_topicList($topic = 'all', $year = 0, $month = 0, $standalone = false)   X-Ref
Display a topic selection drop-down menu

param: string  $topic          current topic
param: int     $year           current year
param: int     $month          current month
param: bool    $standalone     true: don't display form inline

DIR_monthLink($topic, $year, $month, $count)   X-Ref
Build link to a month's page

param: string  $topic  current topic
param: int     $year   year to link to
param: int     $month  month to link to
param: int     $count  number of stories for that month (may be 0)
return: string          month name + count, as link or plain text

DIR_navBar($topic, $year, $month = 0)   X-Ref
Display navigation bar

param: string  $topic  current topic
param: int     $year   current year
param: int     $month  current month (or 0 for year view pages)
return: string          navigation bar with prev, next, and "up" links

DIR_displayMonth($topic, $year, $month, $main = false)   X-Ref
Display month view

param: string  $topic  current topic
param: int     $year   year to display
param: int     $month  month to display
param: bool    $main   true: display view on its own page
return: string          list of articles for the given month

DIR_displayYear($topic, $year, $main = false)   X-Ref
Display year view

param: string  $topic  current topic
param: int     $year   year to display
param: bool    $main   true: display view on its own page
return: string          list of months (+ number of stories) for given year

DIR_displayAll($topic, $list_current_month = false)   X-Ref
Display main view (list of years)

Displays an overview of all the years and months, starting with the first
year for which a story has been posted. Can optionally display a list of
the stories for the current month at the top of the page.

param: string  $topic                  current topic
param: bool    $list_current_month     true = list stories f. current month
return: string                          list of all the years in the db



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics