From 0a5047cfda767e7fa406a9a0af7301117ea30f20 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 13 Sep 2010 14:39:49 +0200 Subject: [PATCH] Make these methods public. --- framework/Group/lib/Horde/Group/Ldap.php | 8 ++++---- framework/Group/lib/Horde/Group/LdapObject.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/framework/Group/lib/Horde/Group/Ldap.php b/framework/Group/lib/Horde/Group/Ldap.php index bfc9d3a77..5d41e40f5 100644 --- a/framework/Group/lib/Horde/Group/Ldap.php +++ b/framework/Group/lib/Horde/Group/Ldap.php @@ -186,7 +186,7 @@ class Horde_Group_Ldap extends Horde_Group } $group = new Horde_Group_LdapObject($name, $parent); - $group->_fromAttributes($entry); + $group->fromAttributes($entry); $group->setGroupOb($this); return $group; @@ -248,7 +248,7 @@ class Horde_Group_Ldap extends Horde_Group $attributes['dn'] = $result[0]['dn']; $group = new Horde_Group_LdapObject($this->getGroupName($dn)); - $group->_fromAttributes($attributes); + $group->fromAttributes($attributes); $group->setGroupOb($this); $cache[$dn] = $group; } @@ -285,7 +285,7 @@ class Horde_Group_Ldap extends Horde_Group $dn = $group->get('dn'); - $entry = $group->_toAttributes(); + $entry = $group->toAttributes(); $success = @ldap_add($this->_ds, $dn, $entry); if (!$success) { @@ -306,7 +306,7 @@ class Horde_Group_Ldap extends Horde_Group */ public function updateGroup(Horde_Group_DataTreeObject $group) { - $entry = $group->_toAttributes(); + $entry = $group->toAttributes(); /* Connect to the LDAP server. */ $this->_connect(); diff --git a/framework/Group/lib/Horde/Group/LdapObject.php b/framework/Group/lib/Horde/Group/LdapObject.php index 0ccd667ca..e0561a13a 100644 --- a/framework/Group/lib/Horde/Group/LdapObject.php +++ b/framework/Group/lib/Horde/Group/LdapObject.php @@ -60,7 +60,7 @@ class Horde_Group_LdapObject extends Horde_Group_DataTreeObject * * @param array $attributes The list of attributes from the backend. */ - protected function _fromAttributes($attributes = array()) + public function fromAttributes($attributes = array()) { $this->data['users'] = array(); foreach ($attributes as $key => $value) { @@ -102,7 +102,7 @@ class Horde_Group_LdapObject extends Horde_Group_DataTreeObject * * @return array The entry array. */ - protected function _toAttributes() + public function toAttributes() { $attributes = array(); foreach ($this->data as $key => $value) { -- 2.11.0