[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/core/include/ -> Archive.class.php (sommaire)

(pas de description)

Poids: 501 lignes (13 kb)
Inclus ou requis: 3 fois
Référencé: 0 fois
Nécessite: 4 fichiers
 core/include/functions.php
 core/include/Date.class.php
 core/include/Archive.functions.php
 core/include/Str.class.php

Définit 1 class

Archive:: (12 méthodes):
  Archive()
  updateDbState()
  saveDb()
  setPeriodType()
  getLiteralDate()
  setLiteralDate()
  initDb()
  deleteOldRecords()
  deleteDoubleArchives()
  offsetDate()
  getPeriodDatesLimit()
  sortAndLimitToRecord()


Classe: Archive  - X-Ref

Base class used by other ArchiveClass to assign some standard attributes

Archive($site)   X-Ref

param: object $site

updateDbState()   X-Ref
Update database, set var state


saveDb()   X-Ref
saves var toRecord values in the database, serializing arrays


setPeriodType($type)   X-Ref
set periodType

param: int $type

getLiteralDate()   X-Ref
Pas de description

setLiteralDate()   X-Ref
Pas de description

initDb()   X-Ref
init the database, inserting a new row for the current archive process
assigns var idArchives

return: true

deleteOldRecords()   X-Ref
Pas de description

deleteDoubleArchives( $dayPeriod )   X-Ref
Pas de description

offsetDate($o_date, $minDay = null)   X-Ref
offset the date, considering the date of the first log record for the current site
and considering today date. It gives a date which is between these 2 dates.

param: object $o_date

getPeriodDatesLimit($s_date)   X-Ref
Returns limit of the period periodType containing $s_date
Works with weeks, month, years, and misc periods (in this case, minDate is the first day where there are logs)

param: string $s_date

sortAndLimitToRecord()   X-Ref
Pas de description



Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics