Change private properties to protected
This commit is contained in:
@@ -15,10 +15,10 @@ class Client
|
||||
/**
|
||||
* LDAP resource
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @var resource
|
||||
*/
|
||||
private $ldap;
|
||||
protected $ldap;
|
||||
|
||||
/**
|
||||
* Establish LDAP connection
|
||||
|
||||
@@ -13,10 +13,10 @@ class Entries
|
||||
/**
|
||||
* LDAP entries
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @var array
|
||||
*/
|
||||
private $entries = array();
|
||||
protected $entries = array();
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
||||
@@ -13,10 +13,10 @@ class Entry
|
||||
/**
|
||||
* LDAP entry
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @var array
|
||||
*/
|
||||
private $entry = array();
|
||||
protected $entry = array();
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
||||
@@ -16,10 +16,10 @@ class Group
|
||||
/**
|
||||
* Query
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @var Query
|
||||
*/
|
||||
private $query;
|
||||
protected $query;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@@ -43,7 +43,8 @@ class Group
|
||||
*/
|
||||
public static function getGroups(Client $client, $query)
|
||||
{
|
||||
$self = new self(new Query($client));
|
||||
$className = get_called_class();
|
||||
$self = new $className(new Query($client));
|
||||
return $self->find($query);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,18 +13,18 @@ class Query
|
||||
/**
|
||||
* LDAP client
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @var Client
|
||||
*/
|
||||
private $client = null;
|
||||
protected $client = null;
|
||||
|
||||
/**
|
||||
* Query result
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @var array
|
||||
*/
|
||||
private $entries = array();
|
||||
protected $entries = array();
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
||||
@@ -17,10 +17,10 @@ class User
|
||||
/**
|
||||
* Query
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @var Query
|
||||
*/
|
||||
private $query;
|
||||
protected $query;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@@ -44,7 +44,8 @@ class User
|
||||
*/
|
||||
public static function getUser(Client $client, $username)
|
||||
{
|
||||
$self = new self(new Query($client));
|
||||
$className = get_called_class();
|
||||
$self = new $className(new Query($client));
|
||||
return $self->find($self->getLdapUserPattern($username));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user