Development

Changeset 27053

You must first sign up to be able to contribute.

Changeset 27053

Show
Ignore:
Timestamp:
01/22/10 16:49:24 (3 years ago)
Author:
tkoomzaaskz
Message:

[td][visitor_counter] release 0.1.4

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/tdVisitorCounterPlugin/trunk/modules/tdVisitorCounter/actions/actions.class.php

    r26064 r27053  
    4848    $count_data = Doctrine::getTable('tdCounter')->getLastDaysCounts($day_count - 1)->fetchArray(); 
    4949 
     50    $tmp_data = array(); 
     51    foreach($count_data as $data) 
     52    { 
     53      $tmp_data[$data['date']] = $data['count']; 
     54    } 
     55 
     56    $day_difference = 60 * 60 * 24; 
     57    $time = time() - $day_difference * ($day_count -1); 
     58    $dates = array(); 
     59    for($i = 0; $i < $day_count; $i++) 
     60    { 
     61      $dates[] = date("Y-m-d", $time); 
     62      $time += $day_difference; 
     63    } 
     64 
     65    $result_data = array(); 
     66    foreach($dates as $date) 
     67    { 
     68      $result_data[$date] = (isset($tmp_data[$date]) ? $tmp_data[$date] : 0 ); 
     69    } 
     70 
    5071    $chartData = array(); 
    5172    $chartMax = 0; 
     
    5374 
    5475    //Array with sample random data 
    55     foreach($count_data as $data
     76    foreach($result_data as $date => $count
    5677    { 
    57       $chartData[] = $data['count']
    58       $chartLabels[] = $data['date']
     78      $chartData[] = $count
     79      $chartLabels[] = $date
    5980      if ($data['count'] > $chartMax) $chartMax = $data['count']; 
    6081    } 
  • plugins/tdVisitorCounterPlugin/trunk/package.xml

    r26064 r27053  
    1111  <active>yes</active> 
    1212 </lead> 
    13  <date>2009-12-31</date> 
     13 <date>2010-01-22</date> 
    1414 <time>11:00:00</time> 
    1515 <version> 
    16    <release>0.1.3</release> 
     16   <release>0.1.4</release> 
    1717   <api>0.1.0</api> 
    1818 </version> 
     
    100100     <name>tdCorePlugin</name> 
    101101     <channel>plugins.symfony-project.org</channel> 
    102      <min>0.1.1</min> 
     102     <min>0.1.7</min> 
    103103    </package> 
    104104   </required> 
     
    109109 
    110110  <changelog> 
     111 
     112   <release> 
     113    <version> 
     114     <release>0.1.4</release> 
     115     <api>0.1.0</api> 
     116    </version> 
     117    <stability> 
     118     <release>beta</release> 
     119     <api>beta</api> 
     120    </stability> 
     121    <license uri="http://www.symfony-project.org/license">MIT license</license> 
     122    <date>2010-01-22</date> 
     123    <license>MIT</license> 
     124    <notes> 
     125     * fixed daily stats charts performance 
     126    </notes> 
     127   </release> 
    111128 
    112129   <release>