[ 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/ -> ArchiveMonth.class.php (source)

   1  <?php
   2  /* 
   3   * phpMyVisites : website statistics and audience measurements
   4   * Copyright (C) 2002 - 2006
   5   * http://www.phpmyvisites.net/ 
   6   * phpMyVisites is free software (license GNU/GPL)
   7   * Authors : phpMyVisites team
   8  */
   9  
  10  // $Id: ArchiveMonth.class.php 29 2006-08-18 07:35:21Z matthieu_ $
  11  
  12  
  13  /**
  14   * Class that is used for the archiving of month periods
  15   * It uses ArchivePeriod which makes all computes based on day archives 
  16   * and It is used for ArchiveYear
  17   */
  18  class ArchiveMonth extends ArchivePeriod
  19  {
  20      /**
  21       * Constructor
  22       * 
  23       * @param object $site
  24       * @param string $s_date
  25       */
  26  	function ArchiveMonth($site, $s_date='')
  27      {
  28          //print("site ".$site->getName()." date $s_date <br>");
  29          
  30          parent::Archive($site);
  31          
  32          $this->setPeriodType(DB_ARCHIVES_PERIOD_MONTH);
  33          
  34          if(!empty($s_date))
  35          {
  36              $this->setDate($s_date);
  37          }
  38          
  39      }
  40  }
  41  ?>


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