Aller au code source de ce fichier.
Classes | |
| class | CustomPaletteB |
Variables | |
| $userNode = eZUser::currentUser()->contentObject()->mainNode() | |
| $ini = eZINI::instance() | |
| $user = $ini->variable('DatabaseSettings', 'User') | |
| $passwd = $ini->variable('DatabaseSettings', 'Password') | |
| $host = $ini->variable('DatabaseSettings', 'Server') | |
| $dbname = $ini->variable('DatabaseSettings', 'Database') | |
| $db = ezcDbFactory::create( "mysql://{$user}:{$passwd}@{$host}/{$dbname}" ) | |
| foreach($userNode->children() as $child) | $hash_i18n |
| foreach($hash_i18n as $h) foreach($nodes as $k=> $n) | try |
| $graph legend | position = ezcGraph::RIGHT |
| $graph options | label = '' |
| $graph legend | portraitSize = 0.25 |
| $graph | palette = new CustomPaletteB |
| $graph | data ['Access statistics'] = new ezcGraphArrayDataSet($data) |
| $db = ezcDbFactory::create( "mysql://{$user}:{$passwd}@{$host}/{$dbname}" ) |
Définition à la ligne 28 du fichier stats-ages.php.
| $dbname = $ini->variable('DatabaseSettings', 'Database') |
Définition à la ligne 22 du fichier stats-ages.php.
| foreach ($userNode->children() as $child) $hash_i18n |
Définition à la ligne 41 du fichier stats-ages.php.
| $host = $ini->variable('DatabaseSettings', 'Server') |
Définition à la ligne 21 du fichier stats-ages.php.
| $ini = eZINI::instance() |
Définition à la ligne 18 du fichier stats-ages.php.
| $passwd = $ini->variable('DatabaseSettings', 'Password') |
Définition à la ligne 20 du fichier stats-ages.php.
| $user = $ini->variable('DatabaseSettings', 'User') |
Définition à la ligne 19 du fichier stats-ages.php.
| $userNode = eZUser::currentUser()->contentObject()->mainNode() |
Ce script génère un graphique de consultation des articles par âge
Pour générer ce graphique, on doit :
Attention! Un article peut avoir plusieurs tranches d'âge. Il compte alors pour chaque Tranche
Définition à la ligne 15 du fichier stats-ages.php.
| $graph data['Access statistics'] = new ezcGraphArrayDataSet($data) |
Définition à la ligne 93 du fichier stats-ages.php.
| $graph options label = '' |
Définition à la ligne 68 du fichier stats-ages.php.
| $graph palette = new CustomPaletteB |
Définition à la ligne 92 du fichier stats-ages.php.
| $graph legend portraitSize = 0.25 |
Définition à la ligne 69 du fichier stats-ages.php.
| $graph legend position = ezcGraph::RIGHT |
Définition à la ligne 67 du fichier stats-ages.php.
| foreach ($hash_i18n as $h) foreach ($nodes as $k=> $n) try |
Définition à la ligne 65 du fichier stats-ages.php.
1.8.3.1