src/Classes/AdldapGroups.php
public function addGroup($parent, $child)
    {
        // Find the parent group's dn
        $parentDn = $this->dn($parent);

        $childDn = $this->dn($child);

        if ($parentDn && $childDn) {
            $add['member'] = $childDn;

            // Add the child to the parent group and return the result
            return $this->connection->modAdd($parentDn, $add);
        }

        return false;
    }
public function addGroup($parent, $child)
    {
        // Find the parent group's dn
        $parentDn = $this->dn($parent);

        $childDn = $this->dn($child);

        if ($parentDn && $childDn) {
            $add['member'] = $childDn;

            // Add the child to the parent group and return the result
            return $this->connection->modAdd($parentDn, $add);
        }

        return false;
    }
public function addGroup ( $ parent , $ child ) { // Find the parent group's dn $ parentDn = $ this -> dn ( $ parent ) ; $ childDn = $ this -> dn ( $ child ) ; if ( $ parentDn && $ childDn ) { $ add [ 'member' ] = $ childDn ; // Add the child to the parent group and return the result return $ this -> connection -> modAdd ( $ parentDn , $ add ) ; } return false ; }
Add a group to a group.

@param string $parent The parent group name
@param string $child  The child group name

@return bool
Add a group to a group .