Elgg  Version master
performance.php
Go to the documentation of this file.
1 <?php
6 $tabs = [];
7 
8 $tabs[] = [
9  'text' => elgg_echo('admin:performance:label:generic'),
10  'content' => elgg_view('admin/performance/generic'),
11  'selected' => true,
12 ];
13 
14 // opcache
15 if (function_exists('opcache_get_status') && opcache_get_status(false)) {
16  $tabs[] = [
17  'text' => elgg_echo('admin:server:label:opcache'),
18  'content' => elgg_view('admin/server/opcache'),
19  ];
20 }
21 
22 echo elgg_view('page/components/tabs', [
23  'tabs' => $tabs,
24 ]);
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
Definition: views.php:156
$tabs
Show performance suggestions / warnings.
Definition: performance.php:6