report:zabbix:developerguide
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| report:zabbix:developerguide [2026/02/05 07:45] – [Defining indicators] admin | report:zabbix:developerguide [2026/04/23 10:29] (Version actuelle) – florence | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | < | + | |
| + | < | ||
| Ligne 43: | Ligne 44: | ||
| | | ||
| + | |||
| [...] | [...] | ||
| + | |||
| // Register zabbix indicators if installed. | // Register zabbix indicators if installed. | ||
| // Note will only work with report_zabbix " | // Note will only work with report_zabbix " | ||
| Ligne 84: | Ligne 85: | ||
| class daily_< | class daily_< | ||
| - | **[...]** | + | [...] |
| } | } | ||
| Ligne 126: | Ligne 127: | ||
| public function acquire_submode($submode) { | public function acquire_submode($submode) { | ||
| global $DB; | global $DB; | ||
| + | |||
| if(!isset($this-> | if(!isset($this-> | ||
| $this-> | $this-> | ||
| } | } | ||
| + | |||
| if (is_null($submode)) { | if (is_null($submode)) { | ||
| $submode = $this-> | $submode = $this-> | ||
| } | } | ||
| + | |||
| switch ($submode) { | switch ($submode) { | ||
| + | |||
| case ' | case ' | ||
| - | + | ||
| - | $submodevalue = **[...]**; // Whatever gets a single value in Moodle. | + | $submodevalue = [...]; // Whatever gets a single value in Moodle. |
| + | | ||
| $this-> | $this-> | ||
| break; | break; | ||
| } | } | ||
| + | |||
| default: { | default: { | ||
| if ($CFG-> | if ($CFG-> | ||
| Ligne 152: | Ligne 153: | ||
| } | } | ||
| - | ---- | + | Once each submode case is written, that's all done ! |
| + | |||
| < | < | ||
| + | ---- | ||
| [[: | [[: | ||
| < | < | ||
report/zabbix/developerguide.1770277557.txt.gz · Dernière modification : de admin
