. */ include_once __DIR__.'/../../core.php'; use Models\Hook; echo ' '; $hooks = $dbo->fetchArray('SELECT `zz_hooks`.*, `zz_modules_lang`.`title` AS modulo FROM `zz_hooks` LEFT JOIN `zz_hooks_lang` ON (`zz_hooks`.`id` = `zz_hooks_lang`.`id_record` AND `zz_hooks_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).') INNER JOIN `zz_modules` ON `zz_hooks`.`id_module` = `zz_modules`.`id` LEFT JOIN `zz_modules_lang` ON (`zz_modules`.`id` = `zz_modules_lang`.`id_record` AND `zz_modules_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).') ORDER BY `id_module` ASC, `zz_hooks`.`id` ASC'); $gruppi = collect($hooks)->groupBy('modulo'); foreach ($gruppi as $modulo => $hooks) { echo ' '; foreach ($hooks as $hook) { $hook = Hook::find($hook['id']); $class = $hook->enabled ? 'success' : 'warning'; $nome_tipo = 'hook'; echo ' '; } } echo ''; echo ' '; echo '
'.tr('Nome').' '.tr('Ultima esecuzione').' '.tr('Stato').'
'.$modulo.'
'.$hook->getTranslation('title').(!empty($hook->help) ? ' ' : '').' '.(!empty($hook->processing_at) ? Translator::timestampToLocale($hook->processing_at) : '').' '; // Possibilità di disabilitare o abilitare il hook if ($hook->enabled) { echo '
'; } else { echo '
'; } echo '

 

';