Issues (50)

src/Admins/SearchAdmin.php (4 issues)

Severity
1
<?php
2
3
namespace Firesphere\SearchBackend\Admins;
4
5
use Firesphere\SearchBackend\Models\DirtyClass;
6
use Firesphere\SearchBackend\Models\SearchLog;
7
use Firesphere\SearchBackend\Models\SearchSynonym;
8
use SilverStripe\Admin\ModelAdmin;
9
use SilverStripe\View\Requirements;
10
11
/**
12
 * Class \Firesphere\SearchBackend\Admins\SearchAdmin
13
 *
14
 */
15
class SearchAdmin extends ModelAdmin
16
{
17
    /**
18
     * @var string Add a pretty magnifying glass to the sidebar menu
19
     */
20
    private static $menu_icon_class = 'font-icon-search';
0 ignored issues
show
The private property $menu_icon_class is not used, and could be removed.
Loading history...
21
22
    /**
23
     * @var string Where to find me
24
     */
25
    private static $url_segment = 'searchadmin';
0 ignored issues
show
The private property $url_segment is not used, and could be removed.
Loading history...
26
27
    /**
28
     * @var string My name
29
     */
30
    private static $menu_title = 'Search';
0 ignored issues
show
The private property $menu_title is not used, and could be removed.
Loading history...
31
32
    /**
33
     * List of all managed {@link DataObject}s in this interface. {@link ModelAdmin::$managed_models}
34
     *
35
     * @config
36
     * @var array|string
37
     */
38
    private static $managed_models = [
0 ignored issues
show
The private property $managed_models is not used, and could be removed.
Loading history...
39
        SearchSynonym::class,
40
        SearchLog::class,
41
        DirtyClass::class
42
    ];
43
44
45
    /**
46
     * Make sure the custom CSS for highlighting in the GridField is loaded
47
     */
48
    public function init()
49
    {
50
        parent::init();
51
52
        Requirements::css('firesphere/searchbackend:client/dist/main.css');
53
    }
54
}
55