data['modules'] ?? []; $active = $this->data['active'] ?? []; $installed = $this->data['installed'] ?? []; $tableView = $this->data['tableView']; $tableView->id = 'moduleList'; $tableView->baseUri = 'admin/module/list'; $tableView->exportUri = '{/api}admin/module/list/export'; $tableView->setObjects($modules); ?>
renderTitle( $this->getHtml('Modules') ); ?>
$module) : ++$count; $url = UriFactory::build('{/base}/admin/module/info?{?}&id=' . $module->getInternalName()); if (isset($active[$module->getInternalName()])) { $status = ModuleStatus::ACTIVE; } elseif (isset($installed[$module->getInternalName()])) { $status = ModuleStatus::INACTIVE; } else { $status = ModuleStatus::AVAILABLE; } ?>
renderHeaderElement( 'id', $this->getHtml('ID', '0', '0'), 'number' ); ?> renderHeaderElement( 'name', $this->getHtml('Name'), 'text' ); ?> renderHeaderElement( 'version', $this->getHtml('Version'), 'text', [], false, false, false ); ?> renderHeaderElement( 'action', $this->getHtml('Status'), 'select', [ 'active' => $this->getHtml('active'), 'available' => $this->getHtml('available'), 'inactive' => $this->getHtml('inactive'), ], false // don't render sort ); ?>
getId(); ?> printHtml($module->getExternalName()); ?> printHtml($module->getVersion()); ?> getHtml('Active')); elseif ($status === ModuleStatus::INACTIVE) echo \mb_strtolower($this->getHtml('Inactive')); else echo \mb_strtolower($this->getHtml('Available')); ?>
getHtml('Empty', '0', '0'); ?>