API - XOOPS 2.5.11 Beta 2
By monxoops.fr
All Data Structures Namespaces Files Functions Variables Pages
stats.php File Reference

Namespaces

namespace  gwiki
 

Functions

 dumpArray ($array, $wrap=null)
 

Variables

 $mydirname = basename( dirname(__DIR__) )
 
 $mydirpath = dirname(__DIR__)
 
 $queryFormat
 
 $sql = ''
 
 $rawStats = array()
 
 $rawStats ['']['month'] = 0
 
 $rawStats ['']['week'] = 0
 
 $rawStats ['']['day'] = 0
 
 $rawStats ['']['hour'] = 0
 
 $result = $xoopsDB->query($sql)
 
while(false !==($row=$xoopsDB->fetchArray($result))) $ages = array('month', 'week', 'day', 'hour')
 
 $stats = array()
 
 $keys = array_keys($stats)
 
foreach($keys as $type) $height = (count($keys) + 1) * 24
 
 $script = "new Chartist.Bar('.ct-chart', {\n"
 
 $allSets = array()
 
for($i=0; $i< 4;++$i) $series = dumpArray(array_reverse($allSets), '') . "\n"
 
 $styles =
 
 $moduleAdmin = \Xmf\Module\Admin::getInstance()
 

Function Documentation

◆ dumpArray()

dumpArray (   $array,
  $wrap = null 
)
Here is the caller graph for this function:

Variable Documentation

◆ $ages

while (false !==( $row=$xoopsDB->fetchArray( $result))) $ages = array('month', 'week', 'day', 'hour')

◆ $allSets

$allSets = array()

◆ $height

foreach ( $keys as $type) $height = (count($keys) + 1) * 24

◆ $keys

$keys = array_keys($stats)

◆ $moduleAdmin

$moduleAdmin = \Xmf\Module\Admin::getInstance()

◆ $mydirname

$mydirname = basename( dirname(__DIR__) )

◆ $mydirpath

$mydirpath = dirname(__DIR__)

◆ $queryFormat

$queryFormat
Initial value:
= "SELECT `type`, '%s' as age, COUNT(*) as count FROM `" . $xoopsDB->prefix($mydirname . "_log")
. "` WHERE `timestamp` > NOW() - INTERVAL %d SECOND GROUP BY `type`, 2 "
$xoopsDB
Definition: common.php:117
$mydirname
Definition: stats.php:14

◆ $rawStats [1/5]

$rawStats = array()

◆ $rawStats [2/5]

$rawStats[''][ 'day'] = 0

◆ $rawStats [3/5]

$rawStats[''][ 'hour'] = 0

◆ $rawStats [4/5]

$rawStats[''][ 'month'] = 0

◆ $rawStats [5/5]

$rawStats[''][ 'week'] = 0

◆ $result

$result = $xoopsDB->query($sql)

◆ $script

$script = "new Chartist.Bar('.ct-chart', {\n"

◆ $series

for ( $i=0;$i< 4;++ $i) $series ( ) = dumpArray(array_reverse($allSets), '') . "\n"

◆ $sql

$sql = ''

◆ $stats

$stats = array()

◆ $styles

$styles =