Skip to content

Commit

Permalink
fixed capitalization on classes
Browse files Browse the repository at this point in the history
  • Loading branch information
hakasapl committed Oct 3, 2022
1 parent a8047e5 commit d46c4c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/PHPOpenLDAPer/LDAPConn.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function search($filter, $base, $recursive = true)

$output = array();
for ($i = 0; isset($search_entries) && $i < count($search_entries); $i++) {
array_push($output, new ldapEntry($this->conn, $search_entries[$i]["dn"]));
array_push($output, new LDAPEntry($this->conn, $search_entries[$i]["dn"]));
}

return $output;
Expand All @@ -74,7 +74,7 @@ public function search($filter, $base, $recursive = true)
*/
public function getEntry($dn)
{
return new ldapEntry($this->conn, $dn);
return new LDAPEntry($this->conn, $dn);
}

/**
Expand Down
12 changes: 6 additions & 6 deletions src/PHPOpenLDAPer/LDAPEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct($conn, $dn)
private function pullObject()
{
$search = @ldap_get_entries($this->conn, ldap_read($this->conn, $this->dn, "(objectclass=*)"));
ldapConn::stripCount($search);
LDAPConn::stripCount($search);

if (isset($search)) {
// Object Exists
Expand Down Expand Up @@ -138,7 +138,7 @@ public function move($destination)
$newParent = substr($destination, strpos($destination, ',') + 1);
if (ldap_rename($this->conn, $this->dn, $newRDN, $newParent, true)) {
$this->pullObject(); // Refresh the existing entry
return new ldapEntry($this->conn, $destination);
return new LDAPEntry($this->conn, $destination);
} else {
return false;
}
Expand All @@ -151,7 +151,7 @@ public function move($destination)
*/
public function getParent()
{
return new ldapEntry($this->conn, substr($this->dn, strpos($this->dn, ',') + 1)); //TODO edge case for parent being non-existent (part of base dn)
return new LDAPEntry($this->conn, substr($this->dn, strpos($this->dn, ',') + 1)); //TODO edge case for parent being non-existent (part of base dn)
}

/**
Expand All @@ -170,7 +170,7 @@ public function getChildrenArray($recursive = false, $filter = "(objectclass=*)"
}

$search_entries = @ldap_get_entries($this->conn, $search);
ldapConn::stripCount($search_entries);
LDAPConn::stripCount($search_entries);

if (count($search_entries) > 0 && $search_entries[0]["dn"] == $this->getDN()) {
array_shift($search_entries);
Expand All @@ -192,7 +192,7 @@ public function getChildren($recursive = false, $filter = "(objectclass=*)")

$output = array();
foreach ($children_array as $child) {
array_push($output, new ldapEntry($this->conn, $child["dn"]));
array_push($output, new LDAPEntry($this->conn, $child["dn"]));
}

return $output;
Expand All @@ -206,7 +206,7 @@ public function getChildren($recursive = false, $filter = "(objectclass=*)")
*/
public function getChild($rdn)
{
return new ldapEntry($this->conn, $rdn . "," . $this->dn);
return new LDAPEntry($this->conn, $rdn . "," . $this->dn);
}

/**
Expand Down

0 comments on commit d46c4c3

Please sign in to comment.