C:\xampp\htdocs\landing\wp-content\plugins\wp-smushit\core\modules\class-abstract-module.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
 * Abstract module class: Abstract_Module
 *
 * @since 3.0
 * @package Smush\Core\Modules
 */

namespace Smush\Core\Modules;

use 
Smush\Core\Settings;

if ( ! 
defined'WPINC' ) ) {
    die;
}

/**
 * Class Abstract_Module
 *
 * @since 3.0
 */
abstract class Abstract_Module {

    
/**
     * Settings instance.
     *
     * @since 3.0
     * @var Settings
     */
    
protected $settings;

    
/**
     * Abstract_Module constructor.
     *
     * @since 3.0
     */
    
public function __construct() {
        
$this->settings Settings::get_instance();

        
$this->init();
    }

    
/**
     * Initialize the module.
     *
     * Do not use __construct in modules, instead use init().
     *
     * @since 3.0
     */
    
protected function init() {}

}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586