PHP7 fixes - constructor must be named __construct()
This commit is contained in:
parent
e24021d2eb
commit
758bc8dd5f
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
Copyright (C) 2004 David Smith
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -57,7 +57,7 @@ $Id$
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Default constructor. */
|
/** Default constructor. */
|
||||||
function SchemaItem()
|
function __construct()
|
||||||
{
|
{
|
||||||
$this->initVars();
|
$this->initVars();
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ class ObjectClass extends SchemaItem
|
||||||
/**
|
/**
|
||||||
* Creates a new ObjectClass object given a raw LDAP objectClass string.
|
* 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();
|
$this->initVars();
|
||||||
$class = $raw_ldap_schema_string;
|
$class = $raw_ldap_schema_string;
|
||||||
|
@ -505,7 +505,7 @@ class ObjectClass extends SchemaItem
|
||||||
* @param string $source the name of the ObjectClass which
|
* @param string $source the name of the ObjectClass which
|
||||||
* specifies this attribute.
|
* specifies this attribute.
|
||||||
*/
|
*/
|
||||||
function ObjectClassAttribute ($name, $source)
|
function __construct($name, $source)
|
||||||
{
|
{
|
||||||
$this->name=$name;
|
$this->name=$name;
|
||||||
$this->source=$source;
|
$this->source=$source;
|
||||||
|
@ -595,7 +595,7 @@ class AttributeType extends SchemaItem
|
||||||
/**
|
/**
|
||||||
* Creates a new AttributeType objcet from a raw LDAP AttributeType string.
|
* 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();
|
$this->initVars();
|
||||||
$attr = $raw_ldap_attr_string;
|
$attr = $raw_ldap_attr_string;
|
||||||
|
@ -1002,7 +1002,7 @@ class Syntax extends SchemaItem
|
||||||
/**
|
/**
|
||||||
* Creates a new Syntax object from a raw LDAP syntax string.
|
* 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();
|
$this->initVars();
|
||||||
$class = $raw_ldap_syntax_string;
|
$class = $raw_ldap_syntax_string;
|
||||||
|
@ -1061,7 +1061,7 @@ class MatchingRule extends SchemaItem
|
||||||
/**
|
/**
|
||||||
* Creates a new MatchingRule object from a raw LDAP MatchingRule string.
|
* 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();
|
$this->initVars();
|
||||||
$strings = preg_split ("/[\s,]+/", $raw_ldap_matching_rule_string, -1,PREG_SPLIT_DELIM_CAPTURE);
|
$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();
|
$this->used_by_attrs = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
function MatchingRuleUse( $raw_matching_rule_use_string )
|
function __construct( $raw_matching_rule_use_string )
|
||||||
{
|
{
|
||||||
$this->initVars();
|
$this->initVars();
|
||||||
$strings = preg_split ("/[\s,]+/", $raw_matching_rule_use_string, -1,PREG_SPLIT_DELIM_CAPTURE);
|
$strings = preg_split ("/[\s,]+/", $raw_matching_rule_use_string, -1,PREG_SPLIT_DELIM_CAPTURE);
|
||||||
|
|
Loading…
Reference in New Issue