PHP7 fixes - constructor must be named __construct()

This commit is contained in:
Roland Gruber 2016-01-01 18:11:36 +00:00
parent e24021d2eb
commit 758bc8dd5f
1 changed files with 111 additions and 111 deletions

View File

@ -3,7 +3,7 @@
$Id$
Copyright (C) 2004 David Smith
modified to fit for LDAP Account Manager 2005 - 2013 Roland Gruber
modified to fit for LDAP Account Manager 2005 - 2016 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -57,7 +57,7 @@ $Id$
}
/** Default constructor. */
function SchemaItem()
function __construct()
{
$this->initVars();
}
@ -123,7 +123,7 @@ class ObjectClass extends SchemaItem
/**
* Creates a new ObjectClass object given a raw LDAP objectClass string.
*/
function ObjectClass( $raw_ldap_schema_string )
function __construct( $raw_ldap_schema_string )
{
$this->initVars();
$class = $raw_ldap_schema_string;
@ -505,7 +505,7 @@ class ObjectClass extends SchemaItem
* @param string $source the name of the ObjectClass which
* specifies this attribute.
*/
function ObjectClassAttribute ($name, $source)
function __construct($name, $source)
{
$this->name=$name;
$this->source=$source;
@ -595,7 +595,7 @@ class AttributeType extends SchemaItem
/**
* Creates a new AttributeType objcet from a raw LDAP AttributeType string.
*/
function AttributeType( $raw_ldap_attr_string )
function __construct( $raw_ldap_attr_string )
{
$this->initVars();
$attr = $raw_ldap_attr_string;
@ -1002,7 +1002,7 @@ class Syntax extends SchemaItem
/**
* Creates a new Syntax object from a raw LDAP syntax string.
*/
function Syntax( $raw_ldap_syntax_string )
function __construct( $raw_ldap_syntax_string )
{
$this->initVars();
$class = $raw_ldap_syntax_string;
@ -1061,7 +1061,7 @@ class MatchingRule extends SchemaItem
/**
* Creates a new MatchingRule object from a raw LDAP MatchingRule string.
*/
function MatchingRule( $raw_ldap_matching_rule_string )
function __construct( $raw_ldap_matching_rule_string )
{
$this->initVars();
$strings = preg_split ("/[\s,]+/", $raw_ldap_matching_rule_string, -1,PREG_SPLIT_DELIM_CAPTURE);
@ -1190,7 +1190,7 @@ class MatchingRuleUse extends SchemaItem
$this->used_by_attrs = array();
}
function MatchingRuleUse( $raw_matching_rule_use_string )
function __construct( $raw_matching_rule_use_string )
{
$this->initVars();
$strings = preg_split ("/[\s,]+/", $raw_matching_rule_use_string, -1,PREG_SPLIT_DELIM_CAPTURE);