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:46] – [Defining indicators] admin | report:zabbix:developerguide [2026/02/07 19:41] (Version actuelle) – [Plugin registration method] admin | ||
|---|---|---|---|
| Ligne 43: | Ligne 43: | ||
| | | ||
| + | |||
| [...] | [...] | ||
| + | |||
| // 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 126: | Ligne 126: | ||
| 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 151: | Ligne 151: | ||
| } | } | ||
| } | } | ||
| + | |||
| + | Once each submode case is written, that's all done ! | ||
| ---- | ---- | ||
report/zabbix/developerguide.1770277595.txt.gz · Dernière modification : de admin
