XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier stats.php

Espaces de nommage

 gwiki
 

Fonctions

 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 = []
 
 $keys = array_keys($stats)
 
foreach($keys as $type) $height = (count($keys) + 1) * 24
 
 $script = "new Chartist.Bar('.ct-chart', {\n"
 
 $allSets = []
 
for($i=0; $i< 4;++$i) $series = dumpArray(array_reverse($allSets), '') . "\n"
 
 $styles =
 
 $moduleAdmin = \Xmf\Module\Admin::getInstance()
 

Documentation des fonctions

◆ dumpArray()

dumpArray (   $array,
  $wrap = null 
)

Documentation des variables

◆ $ages

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

◆ $allSets

$allSets = []

◆ $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
Valeur initiale :
= "SELECT `type`, '%s' as age, COUNT(*) as count FROM `" . $xoopsDB->prefix($mydirname . "_log")
. "` WHERE `timestamp` > NOW() - INTERVAL %d SECOND GROUP BY `type`, 2 "

◆ $rawStats [1/5]

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

◆ $rawStats [2/5]

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

◆ $rawStats [3/5]

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

◆ $rawStats [4/5]

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

◆ $rawStats [5/5]

$rawStats = array()

◆ $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 = []

◆ $styles

$styles =
$mydirname
$mydirname
Definition: stats.php:14
$xoopsDB
$xoopsDB
Definition: common.php:103