}
$group = new Horde_Group_LdapObject($name, $parent);
- $group->_fromAttributes($entry);
+ $group->fromAttributes($entry);
$group->setGroupOb($this);
return $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;
}
$dn = $group->get('dn');
- $entry = $group->_toAttributes();
+ $entry = $group->toAttributes();
$success = @ldap_add($this->_ds, $dn, $entry);
if (!$success) {
*/
public function updateGroup(Horde_Group_DataTreeObject $group)
{
- $entry = $group->_toAttributes();
+ $entry = $group->toAttributes();
/* Connect to the LDAP server. */
$this->_connect();
*
* @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) {
*
* @return array The entry array.
*/
- protected function _toAttributes()
+ public function toAttributes()
{
$attributes = array();
foreach ($this->data as $key => $value) {