PluginProbe
Lasso Lite – Affiliate Link Manager & Product Displays / 155
Lasso Lite – Affiliate Link Manager & Product Displays v155
157 155 156 154 153 152 151 150 149 148 trunk 0.9.9 104 105 106 107 108 109 110 111 112 113 114 115 116 All 56 releases
← All changes | classes/class-init.php +33 -21 113155 View file →
@@ -6,23 +6,44 @@
6 6 */
7 7
8 8 namespace LassoLite\Classes;
9 9
10 -use LassoLite\Admin\Constant;
11 -use LassoLite\Classes\Helper;
12 -
13 10 /**
14 11 * Init
15 12 */
16 13 class Init {
14 + /**
15 + * Declare vars of Lasso_Init
16 + *
17 + * @var array $classes List of classes
18 + */
19 + private $classes;
17 20
18 21 /**
22 + * Declare vars of Lasso_Init
23 + *
24 + * @var array $ajaxes List of ajaxes
25 + */
26 + private $ajaxes;
27 +
28 + /**
29 + * Declare vars of Lasso_Init
30 + *
31 + * @var array $hooks List of hooks
32 + */
33 + private $hooks;
34 +
35 + /**
36 + * Declare vars of Lasso_Init
37 + *
38 + * @var array $processes List of processes
39 + */
40 + private $processes;
41 +
42 + /**
19 43 * Init constructor.
20 44 */
21 45 public function __construct() {
22 -
23 - $this->init_site_id();
24 -
25 46 $this->ajaxes = array(
26 47 '\LassoLite\Pages\Ajax',
27 48 '\LassoLite\Pages\Dashboard\Ajax',
28 49 '\LassoLite\Pages\Import_Urls\Ajax',
@@ -28,20 +49,23 @@
28 49 '\LassoLite\Pages\Import_Urls\Ajax',
29 50 '\LassoLite\Pages\Url_Details\Ajax',
30 51 '\LassoLite\Pages\Settings\Ajax',
31 52 '\LassoLite\Pages\Groups\Ajax',
53 + '\LassoLite\Pages\Install\Ajax',
32 54 );
33 55
34 56 $this->hooks = array(
35 57 '\LassoLite\Pages\Hook',
36 58 '\LassoLite\Pages\Url_Details\Hook',
59 + '\LassoLite\Pages\Import_Urls\Hook',
60 + '\LassoLite\Classes\Cron',
37 61 );
38 62
39 - $this->classes = array(
40 - '\LassoLite\Classes\Cron',
41 - );
63 + $this->classes = array();
42 64
43 65 $this->processes = array(
66 + '\LassoLite\Classes\Processes\Amazon',
67 + '\LassoLite\Classes\Processes\Amazon_Shortlink',
44 68 '\LassoLite\Classes\Processes\Import_All',
45 69 '\LassoLite\Classes\Processes\Revert_All',
46 70 );
47 71
@@ -93,20 +117,8 @@
93 117 */
94 118 public function initalize_processes() {
95 119 foreach ( $this->processes as $process ) {
96 120 new $process();
97 - }
98 - }
99 -
100 - /**
101 - * Init Lasso Lite site id
102 - */
103 - public function init_site_id() {
104 - if ( empty( Helper::get_option( Constant::SITE_ID_KEY ) ) ) {
105 - $url_parts = wp_parse_url( home_url() );
106 - $domain = $url_parts['host'];
107 - $hash_site_id = md5( $domain );
108 - Helper::update_option( Constant::SITE_ID_KEY, $hash_site_id );
109 121 }
110 122 }
111 123
112 124 /**