Skip to content

Commit c822b28

Browse files
authored
Update enphasesecur.class.php
modif static functions
1 parent ef1e618 commit c822b28

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

core/class/enphasesecur.class.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ class enphasesecur extends eqLogic
2222
{
2323
/* * *************************Attributs****************************** */
2424

25-
public function decrypt() {
25+
public static function decrypt() {
2626
$this->setConfiguration('password', utils::decrypt($this->getConfiguration('password')));
2727
$this->setConfiguration('serie', utils::decrypt($this->getConfiguration('serie')));
2828
$this->setConfiguration('token', utils::decrypt($this->getConfiguration('token')));
2929
}
3030

31-
public function encrypt() {
31+
public static function encrypt() {
3232
$this->setConfiguration('password', utils::encrypt($this->getConfiguration('password')));
3333
$this->setConfiguration('serie', utils::encrypt($this->getConfiguration('serie')));
3434
$this->setConfiguration('token', utils::encrypt($this->getConfiguration('token')));
@@ -78,7 +78,7 @@ public static function dependancy_install_update()
7878
log::remove(__CLASS__ . '_update');
7979
}
8080

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)
8282
{
8383
$enphasesecurCmd = $this->getCmd(null, $enphaselogic);
8484
if (!is_object($enphasesecurCmd))
@@ -185,7 +185,7 @@ public function preUpdate() {}
185185
// Fonction exécutée automatiquement après la mise à jour de l'équipement
186186
public function postUpdate() {}
187187

188-
public function enphasesecurCron15(){
188+
public static function enphasesecurCron15(){
189189
$prodgroupe1 = 0;
190190
$prodgroupe2 = 0;
191191
$prodgroupe3 = 0;
@@ -223,7 +223,7 @@ public function enphasesecurCron15(){
223223
}
224224
}
225225

226-
public function enphasesecurCron1d(){
226+
public static function enphasesecurCron1d(){
227227
foreach (eqLogic::byType('enphasesecur', true) as $eqLogic) {
228228
//init wh onduleur
229229
if ($eqLogic->getConfiguration('type') == 'conv') {
@@ -262,7 +262,7 @@ public function enphasesecurCron1d(){
262262
}
263263
}
264264

265-
public function enphasesecurCron1drapport(){
265+
public static function enphasesecurCron1drapport(){
266266

267267
$cumul1 =0;
268268
$cumul1b =0;
@@ -382,7 +382,7 @@ public function enphasesecurCron1drapport(){
382382
}
383383

384384
//création des crons pour les onduleurs WH et init cumul export import
385-
public function creacron(){
385+
public function creacron(){
386386
$enphasesecurCron15 = cron::byClassAndFunction(__CLASS__, 'enphasesecurCron15');
387387
if (!is_object($enphasesecurCron15)) {
388388
$enphasesecurCron15 = new cron();

0 commit comments

Comments
 (0)