PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.1.0
Defender Security – Malware Scanner, Login Security & Firewall v6.1.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
defender-security / src / controller / class-expert-services.php

class-expert-services.php in Defender Security – Malware Scanner, Login Security & Firewall 6.1.0, at src/controller/class-expert-services.php

96 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Handles all service related actions.
4 *
5 * @package WP_Defender\Controller
6 */
7
8 namespace WP_Defender\Controller;
9
10 use WP_Defender\Controller;
11
12 /**
13 * Contains methods for handling scans.
14 */
15 class Expert_Services extends Controller {
16
17 /**
18 * The slug identifier for this controller.
19 *
20 * @var string
21 */
22 public $slug = 'wdf-expert-services';
23
24 /**
25 * Initializes the model and service, registers routes.
26 */
27 public function __construct() {
28 }
29
30 /**
31 * Enqueues scripts and styles for this page.
32 * Only enqueues assets if the page is active.
33 */
34 public function enqueue_assets(): void {
35 if ( ! $this->is_page_active() ) {
36 return;
37 }
38 }
39
40 /**
41 * All the variables that we will show on frontend, both in the main page, or dashboard widget.
42 *
43 * @return array
44 */
45 public function data_frontend() {
46 return array();
47 }
48
49 /**
50 * Export the data of this module, we will use this for export to HUB, create a preset etc.
51 *
52 * @return array
53 */
54 public function to_array() {
55 return array();
56 }
57
58 /**
59 * Import the data of other source into this, it can be when HUB trigger the import, or user apply a preset.
60 *
61 * @param array $data Data from other source.
62 */
63 public function import_data( array $data ) {
64 }
65
66 /**
67 * Remove all settings, configs generated in this container runtime.
68 */
69 public function remove_settings() {
70 }
71
72 /**
73 * Remove all data.
74 */
75 public function remove_data() {
76 }
77
78 /**
79 * Export strings.
80 *
81 * @return array
82 */
83 public function export_strings(): array {
84 return array();
85 }
86
87 /**
88 * Render the page.
89 *
90 * @return void
91 */
92 public function main_view(): void {
93 $this->render( 'main' );
94 }
95 }
96