mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-30 13:19:01 +02:00
57 lines
1.1 KiB
PHP
57 lines
1.1 KiB
PHP
<?php
|
|
|
|
/* Icinga Web 2 | (c) 2022 Icinga GmbH | GPLv2+ */
|
|
|
|
namespace Icinga\Model;
|
|
|
|
use ipl\Orm\Model;
|
|
|
|
class ModuleDashlet extends Model
|
|
{
|
|
public function getTableName()
|
|
{
|
|
return 'module_dashlet';
|
|
}
|
|
|
|
public function getKeyName()
|
|
{
|
|
return 'id';
|
|
}
|
|
|
|
public function getColumns()
|
|
{
|
|
return [
|
|
'name',
|
|
'label',
|
|
'module',
|
|
'pane',
|
|
'url',
|
|
'description',
|
|
'priority'
|
|
];
|
|
}
|
|
|
|
public function getColumnDefinitions()
|
|
{
|
|
return [
|
|
'name' => t('Dashlet Name'),
|
|
'label' => t('Dashlet Title'),
|
|
'module' => t('Module Name'),
|
|
'pane' => t('Pane Name'),
|
|
'url' => t('Dashlet Url'),
|
|
'description' => t('Dashlet Description'),
|
|
'priority' => t('Dashlet Priority Order')
|
|
];
|
|
}
|
|
|
|
public function getSearchColumns()
|
|
{
|
|
return ['name'];
|
|
}
|
|
|
|
public function getDefaultSort()
|
|
{
|
|
return ['module_dashlet.name', 'module_dashlet.priority'];
|
|
}
|
|
}
|