[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/plugins/ -> _archives.plugin.php (sommaire)

This file implements the Archives plugin. Displays a list of post archives.

Author: blueyed: Daniel HAHLER.
Author: fplanque: Francois PLANQUE - {@link http://fplanque.net/}
Author: cafelog (group)
Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
Version: $Id: _archives.plugin.php,v 1.43 2007/06/25 11:02:31 fplanque Exp $
Poids: 738 lignes (24 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

archives_plugin:: (2 méthodes):
  PluginInit()
  SkinTag()

ArchiveList:: (4 méthodes):
  ArchiveList()
  count_total_rows()
  restart()
  get_item()


Classe: archives_plugin  - X-Ref

Archives Plugin

This plugin displays
PluginInit( & $params )   X-Ref
Init


SkinTag( $params )   X-Ref
Event handler: SkinTag

param: array Associative array of parameters. Valid keys are:
return: boolean did we display?

Classe: ArchiveList  - X-Ref

Archive List Class

ArchiveList( $archive_mode = 'monthly', $limit = 100, $sort_order = 'date', $preserve_context = false, $dbtable = 'T_items__item', $dbprefix = 'post_', $dbIDname = 'ID' )   X-Ref
Constructor

Note: Weekly archives use MySQL's week numbering and MySQL default if applicable.
In MySQL < 4.0.14, WEEK() always uses mode 0: Week starts on Sunday;
Value range is 0 to 53; week 1 is the first week that starts in this year.

param: string
param: integer
param: boolean

count_total_rows()   X-Ref
Count the number of rows of the SQL result

These queries are complex enough for us not to have to rewrite them:
dh> ???

restart()   X-Ref
Rewind resultset


get_item( & $arc_year, & $arc_month, & $arc_dayofmonth, & $arc_w, & $arc_count, & $post_ID, & $post_title )   X-Ref
Getting next item in archive list

WARNING: these are *NOT* Item objects!



Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics