public function getUsers($descendants = false) {
    if ($descendants) {
      $groups = $this->getDescendants();
      $or = ['|',
          'ref' => [
            ['group', $groups],
            ['groups', $groups]
          ]
        ];
    } else {
      $or = null;
    }
    $groups[] = $this;
    $return = Nymph::getEntities(
        ['class' => '\Tilmeld\Entities\User'],
        ['&',
          'equal' => ['enabled', true]
        ],
        $or
    );
    return $return;
  }
public function getUsers($descendants = false) {
    if ($descendants) {
      $groups = $this->getDescendants();
      $or = ['|',
          'ref' => [
            ['group', $groups],
            ['groups', $groups]
          ]
        ];
    } else {
      $or = null;
    }
    $groups[] = $this;
    $return = Nymph::getEntities(
        ['class' => '\Tilmeld\Entities\User'],
        ['&',
          'equal' => ['enabled', true]
        ],
        $or
    );
    return $return;
  }
public function getUsers ( $ descendants = false ) { if ( $ descendants ) { $ groups = $ this -> getDescendants ( ) ; $ or = [ '|' , 'ref' => [ [ 'group' , $ groups ] , [ 'groups' , $ groups ] ] ] ; } else { $ or = null ; } $ groups [ ] = $ this ; $ return = Nymph :: getEntities ( [ 'class' => '\Tilmeld\Entities\User' ] , [ '&' , 'equal' => [ 'enabled' , true ] ] , $ or ) ; return $ return ; }
Gets an array of users in the group.

@param bool $descendants Include users in all descendant groups too.
@return array An array of users.
Gets an array of users in the group .