summaryrefslogtreecommitdiff
path: root/app/Core/Ldap
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Ldap')
-rw-r--r--app/Core/Ldap/Client.php4
-rw-r--r--app/Core/Ldap/Entries.php4
-rw-r--r--app/Core/Ldap/Entry.php4
-rw-r--r--app/Core/Ldap/Group.php7
-rw-r--r--app/Core/Ldap/Query.php8
-rw-r--r--app/Core/Ldap/User.php7
6 files changed, 18 insertions, 16 deletions
diff --git a/app/Core/Ldap/Client.php b/app/Core/Ldap/Client.php
index 5d481cd3..63149ae3 100644
--- a/app/Core/Ldap/Client.php
+++ b/app/Core/Ldap/Client.php
@@ -15,10 +15,10 @@ class Client
/**
* LDAP resource
*
- * @access private
+ * @access protected
* @var resource
*/
- private $ldap;
+ protected $ldap;
/**
* Establish LDAP connection
diff --git a/app/Core/Ldap/Entries.php b/app/Core/Ldap/Entries.php
index 3487541f..0e779342 100644
--- a/app/Core/Ldap/Entries.php
+++ b/app/Core/Ldap/Entries.php
@@ -13,10 +13,10 @@ class Entries
/**
* LDAP entries
*
- * @access private
+ * @access protected
* @var array
*/
- private $entries = array();
+ protected $entries = array();
/**
* Constructor
diff --git a/app/Core/Ldap/Entry.php b/app/Core/Ldap/Entry.php
index e67dd625..0b99a58b 100644
--- a/app/Core/Ldap/Entry.php
+++ b/app/Core/Ldap/Entry.php
@@ -13,10 +13,10 @@ class Entry
/**
* LDAP entry
*
- * @access private
+ * @access protected
* @var array
*/
- private $entry = array();
+ protected $entry = array();
/**
* Constructor
diff --git a/app/Core/Ldap/Group.php b/app/Core/Ldap/Group.php
index e11e8ecd..634d47ee 100644
--- a/app/Core/Ldap/Group.php
+++ b/app/Core/Ldap/Group.php
@@ -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);
}
diff --git a/app/Core/Ldap/Query.php b/app/Core/Ldap/Query.php
index 6ca4bc96..e03495ec 100644
--- a/app/Core/Ldap/Query.php
+++ b/app/Core/Ldap/Query.php
@@ -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
diff --git a/app/Core/Ldap/User.php b/app/Core/Ldap/User.php
index 0c9df63f..04c4cc7e 100644
--- a/app/Core/Ldap/User.php
+++ b/app/Core/Ldap/User.php
@@ -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));
}