@@ -22,13 +22,13 @@ class enphasesecur extends eqLogic
22
22
{
23
23
/* * *************************Attributs****************************** */
24
24
25
- public function decrypt () {
25
+ public static function decrypt () {
26
26
$ this ->setConfiguration ('password ' , utils::decrypt ($ this ->getConfiguration ('password ' )));
27
27
$ this ->setConfiguration ('serie ' , utils::decrypt ($ this ->getConfiguration ('serie ' )));
28
28
$ this ->setConfiguration ('token ' , utils::decrypt ($ this ->getConfiguration ('token ' )));
29
29
}
30
30
31
- public function encrypt () {
31
+ public static function encrypt () {
32
32
$ this ->setConfiguration ('password ' , utils::encrypt ($ this ->getConfiguration ('password ' )));
33
33
$ this ->setConfiguration ('serie ' , utils::encrypt ($ this ->getConfiguration ('serie ' )));
34
34
$ this ->setConfiguration ('token ' , utils::encrypt ($ this ->getConfiguration ('token ' )));
@@ -78,7 +78,7 @@ public static function dependancy_install_update()
78
78
log::remove (__CLASS__ . '_update ' );
79
79
}
80
80
81
- public function CreaCmd ($ enphaselogic , $ enphasename , $ enphasedash , $ enphasehisto , $ enphasehistor , $ enphasegtype , $ enphasetype , $ enphasesubtype , $ enphaseunite , $ enphasevisible )
81
+ public static function CreaCmd ($ enphaselogic , $ enphasename , $ enphasedash , $ enphasehisto , $ enphasehistor , $ enphasegtype , $ enphasetype , $ enphasesubtype , $ enphaseunite , $ enphasevisible )
82
82
{
83
83
$ enphasesecurCmd = $ this ->getCmd (null , $ enphaselogic );
84
84
if (!is_object ($ enphasesecurCmd ))
@@ -185,7 +185,7 @@ public function preUpdate() {}
185
185
// Fonction exécutée automatiquement après la mise à jour de l'équipement
186
186
public function postUpdate () {}
187
187
188
- public function enphasesecurCron15 (){
188
+ public static function enphasesecurCron15 (){
189
189
$ prodgroupe1 = 0 ;
190
190
$ prodgroupe2 = 0 ;
191
191
$ prodgroupe3 = 0 ;
@@ -223,7 +223,7 @@ public function enphasesecurCron15(){
223
223
}
224
224
}
225
225
226
- public function enphasesecurCron1d (){
226
+ public static function enphasesecurCron1d (){
227
227
foreach (eqLogic::byType ('enphasesecur ' , true ) as $ eqLogic ) {
228
228
//init wh onduleur
229
229
if ($ eqLogic ->getConfiguration ('type ' ) == 'conv ' ) {
@@ -262,7 +262,7 @@ public function enphasesecurCron1d(){
262
262
}
263
263
}
264
264
265
- public function enphasesecurCron1drapport (){
265
+ public static function enphasesecurCron1drapport (){
266
266
267
267
$ cumul1 =0 ;
268
268
$ cumul1b =0 ;
@@ -382,7 +382,7 @@ public function enphasesecurCron1drapport(){
382
382
}
383
383
384
384
//création des crons pour les onduleurs WH et init cumul export import
385
- public function creacron (){
385
+ public function creacron (){
386
386
$ enphasesecurCron15 = cron::byClassAndFunction (__CLASS__ , 'enphasesecurCron15 ' );
387
387
if (!is_object ($ enphasesecurCron15 )) {
388
388
$ enphasesecurCron15 = new cron ();
0 commit comments