added more entities to globalsearch (customer-side)
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -204,7 +204,7 @@ class GlobalSearch
|
|||||||
$toSearch = [
|
$toSearch = [
|
||||||
// (sub)domains
|
// (sub)domains
|
||||||
'domains' => [
|
'domains' => [
|
||||||
'class' => \Froxlor\Api\Commands\Domains::class,
|
'class' => \Froxlor\Api\Commands\SubDomains::class,
|
||||||
'searchfields' => [
|
'searchfields' => [
|
||||||
'd.domain',
|
'd.domain',
|
||||||
'd.domain_ace',
|
'd.domain_ace',
|
||||||
@@ -216,6 +216,48 @@ class GlobalSearch
|
|||||||
'title_args' => 'domain_ace',
|
'title_args' => 'domain_ace',
|
||||||
'href' => 'customer_domains.php?page=domains&action=edit&id='
|
'href' => 'customer_domains.php?page=domains&action=edit&id='
|
||||||
]
|
]
|
||||||
|
],
|
||||||
|
// email addresses
|
||||||
|
'emails' => [
|
||||||
|
'class' => \Froxlor\Api\Commands\Emails::class,
|
||||||
|
'searchfields' => [
|
||||||
|
'm.email',
|
||||||
|
'm.email_full'
|
||||||
|
],
|
||||||
|
'result_key' => 'id',
|
||||||
|
'result_format' => [
|
||||||
|
'title' => ['self', 'getFieldFromResult'],
|
||||||
|
'title_args' => 'email',
|
||||||
|
'href' => 'customer_email.php?page=emails&action=edit&id='
|
||||||
|
]
|
||||||
|
],
|
||||||
|
// databases
|
||||||
|
'databases' => [
|
||||||
|
'class' => \Froxlor\Api\Commands\Mysqls::class,
|
||||||
|
'searchfields' => [
|
||||||
|
'databasename',
|
||||||
|
'description'
|
||||||
|
],
|
||||||
|
'result_key' => 'id',
|
||||||
|
'result_format' => [
|
||||||
|
'title' => ['self', 'getFieldFromResult'],
|
||||||
|
'title_args' => 'databasename',
|
||||||
|
'href' => 'customer_mysql.php?page=mysqls&action=edit&id='
|
||||||
|
]
|
||||||
|
],
|
||||||
|
// ftp user
|
||||||
|
'ftpuser' => [
|
||||||
|
'class' => \Froxlor\Api\Commands\Ftps::class,
|
||||||
|
'searchfields' => [
|
||||||
|
'username',
|
||||||
|
'description'
|
||||||
|
],
|
||||||
|
'result_key' => 'id',
|
||||||
|
'result_format' => [
|
||||||
|
'title' => ['self', 'getFieldFromResult'],
|
||||||
|
'title_args' => 'username',
|
||||||
|
'href' => 'customer_ftp.php?page=ftps&action=edit&id='
|
||||||
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user