Fix parent constructor calls

This commit is contained in:
Benjamin Renard 2019-03-12 13:10:24 +01:00
parent a577417b69
commit a338e0dfa0
7 changed files with 8 additions and 8 deletions

View file

@ -35,7 +35,7 @@ class LSattr_html_maildir extends LSattr_html {
public function __construct($name, $config, &$attribute) { public function __construct($name, $config, &$attribute) {
$attribute -> addObjectEvent('before_delete',$this,'beforeDelete'); $attribute -> addObjectEvent('before_delete',$this,'beforeDelete');
$attribute -> addObjectEvent('after_delete',$this,'deleteMaildirByFTP'); $attribute -> addObjectEvent('after_delete',$this,'deleteMaildirByFTP');
return parent :: LSattr_html($name, $config, $attribute); return parent :: __construct($name, $config, $attribute);
} }
public function doOnModify($action,$cur,$new) { public function doOnModify($action,$cur,$new) {

View file

@ -30,7 +30,7 @@ class LSauthMethod_CAS extends LSauthMethod {
public function __construct() { public function __construct() {
LSauth :: disableLoginForm(); LSauth :: disableLoginForm();
if (!parent :: LSauthMethod()) if (!parent :: __construct())
return; return;
if (LSsession :: includeFile(PHP_CAS_PATH)) { if (LSsession :: includeFile(PHP_CAS_PATH)) {

View file

@ -29,10 +29,10 @@ LSsession :: loadLSclass('LSauthMethod_basic');
*/ */
class LSauthMethod_HTTP extends LSauthMethod_basic { class LSauthMethod_HTTP extends LSauthMethod_basic {
public function LSauthMethod_HTTP() { public function __construct() {
LSauth :: disableLoginForm(); LSauth :: disableLoginForm();
LSauth :: disableLogoutBtn(); LSauth :: disableLogoutBtn();
return parent :: LSauthMethod_basic(); return parent :: __construct();
} }
/** /**

View file

@ -31,7 +31,7 @@ class LSauthMethod_anonymous extends LSauthMethod {
LSauth :: disableLoginForm(); LSauth :: disableLoginForm();
LSauth :: disableSelfAccess(); LSauth :: disableSelfAccess();
if (!parent :: LSauthMethod()) if (!parent :: __construct())
return; return;
if ( (!defined('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT')) || (constant('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT') === True)) { if ( (!defined('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT')) || (constant('LSAUTHMETHOD_ANONYMOUS_DISABLE_LOGOUT') === True)) {

View file

@ -36,7 +36,7 @@ class LSformElement_jsonCompositeAttribute extends LSformElement {
var $fieldTemplate = 'LSformElement_jsonCompositeAttribute_field.tpl'; var $fieldTemplate = 'LSformElement_jsonCompositeAttribute_field.tpl';
public function __construct(&$form, $name, $label, $params, &$attr_html){ public function __construct(&$form, $name, $label, $params, &$attr_html){
parent :: LSformElement($form, $name, $label, $params,$attr_html); parent :: __construct($form, $name, $label, $params,$attr_html);
$this -> components = $this -> getParam('html_options.components', array()); $this -> components = $this -> getParam('html_options.components', array());
} }

View file

@ -111,7 +111,7 @@ class LSformElement_supannEtuInscription extends LSformElement_supannCompositeAt
'required' => false 'required' => false
) )
); );
return parent::LSformElement ($form, $name, $label, $params,$attr_html); return parent :: __construct($form, $name, $label, $params, $attr_html);
} }
} }

View file

@ -54,7 +54,7 @@ class LSformElement_supannRoleEntite extends LSformElement_supannCompositeAttrib
'required' => false 'required' => false
) )
); );
return parent::LSformElement ($form, $name, $label, $params,$attr_html); return parent :: __construct($form, $name, $label, $params, $attr_html);
} }
} }