Get attendees that have populated registrant details.

@return void
773994
public function contactableAttendees() {
		$attendees = $this->Attendees();
		foreach ($this->stat("registrant_fields") as $field) {
			$attendees = $attendees->where("\"".$field."\" IS NOT NULL");
		}
		return $attendees;
	}
1183071
protected function getRegistrations() {
        if (!$this->_registrations) {
            $this->_registrations = new AuthTypeRegistrationsList(
                $this->version,
                $this->solution['accountSid'],
                $this->solution['domainSid']
            );
        }

        return $this->_registrations;
    }
520849
public function query() {
    // Profile user.
    $account_profile = \Drupal::routeMatch()->getParameter('user');

    if (!is_null($account_profile) && is_object($account_profile)) {
      $account_profile = $account_profile->id();
    }

    // Join the event tables.
    $configuration = [
      'table' => 'event_enrollment__field_event',
      'field' => 'field_event_target_id',
      'left_table' => 'node_field_data',
      'left_field' => 'nid',
      'operator' => '=',
    ];
    $join = Views::pluginManager('join')->createInstance('standard', $configuration);
    $this->query->addRelationship('event_enrollment__field_event', $join, 'node_field_data');

    $configuration = [
      'table' => 'event_enrollment_field_data',
      'field' => 'id',
      'left_table' => 'event_enrollment__field_event',
      'left_field' => 'entity_id',
      'operator' => '=',
    ];
    $join = Views::pluginManager('join')->createInstance('standard', $configuration);
    $this->query->addRelationship('event_enrollment_field_data', $join, 'node_field_data');

    $configuration = [
      'table' => 'event_enrollment__field_enrollment_status',
      'field' => 'entity_id',
      'left_table' => 'event_enrollment__field_event',
      'left_field' => 'entity_id',
      'operator' => '=',
    ];
    $join = Views::pluginManager('join')->createInstance('standard', $configuration);
    $this->query->addRelationship('event_enrollment__field_enrollment_status', $join, 'node_field_data');

    $or_condition = db_or();

    // Check if the user is the author of the event.
    $event_creator = db_and();
    $event_creator->condition('node_field_data.uid', $account_profile, '=');
    $event_creator->condition('node_field_data.type', 'event', '=');
    $or_condition->condition($event_creator);

    // Or if he enrolled to the event.
    $enrolled_to_event = db_and();
    $enrolled_to_event->condition('event_enrollment_field_data.user_id', $account_profile, '=');
    $enrolled_to_event->condition('event_enrollment__field_enrollment_status.field_enrollment_status_value', '1', '=');
    $or_condition->condition($enrolled_to_event);

    $this->query->addWhere('enrolled_or_created', $or_condition);
  }
292317
public function afterRegistry()
    {
        $agenda = $this->loader->getAgenda();

        if ($agenda) {
            $this->addColumn(
                    "CASE WHEN gap_status IN ('" .
                        implode("', '", $agenda->getStatusKeysInactive()) .
                        "') THEN 'deleted' ELSE '' END",
                    'row_class'
                    );

            $codes = $agenda->getStatusCodesInactive();
            if (isset($codes['CA'])) {
                $cancelCode = 'CA';
            } elseif ($codes) {
                reset($codes);
                $cancelCode = key($codes);
            } else {
                $cancelCode = null;
            }
            if ($cancelCode) {
                $this->setDeleteValues('gap_status', $cancelCode);
            }
        }
    }
1373245
public function showMembers() {
    $entityView = $this->entityTypeManager->getStorage('view')->load('campaign_members');
    /** @var \Drupal\views\ViewExecutable $view */
    $view = $this->viewsExecutableFactory->get($entityView);
    $view->setDisplay('members_list_block');

    $campaigns = $this->campaignMenuService->getActiveCampaigns();
    if (empty($view->getExposedInput()) && !empty($campaigns)) {
      $defaultCampaign = current($campaigns);
      $view->setExposedInput(['campaign' => $defaultCampaign->id()]);
    }

    $build = [
      'link' => [
        '#type' => 'link',
        '#title' => $this->t('Registration Portal >>>'),
        '#url' => Url::fromRoute('openy_campaign.member-registration-portal'),
        '#attributes' => [
          'class' => [
            'align-right',
          ],
        ],
        '#prefix' => '<div class="row">',
        '#suffix' => '</div>',
      ],
      'view' => $view->render(),
    ];

    return $build;
  }
43761
public function getEndAttemptIdentifiers() {
        $endAttemptIdentifiers = new IdentifierCollection();
        
        foreach ($this->getComponentsByClassName('endAttemptInteraction') as $endAttemptInteraction) {
            $endAttemptIdentifiers[] = $endAttemptInteraction->getResponseIdentifier();
        }
        
        return $endAttemptIdentifiers;
    }
675507
function createAttendee() {
    $cnt = count( $this->attendee );
    if( 0 >= $cnt )
      return;
    $attendees = null;
    foreach( $this->attendee as $attendeePart ) {                      // start foreach 1
      $attendee1 = $attendee2 = $attendeeLANG = $attendeeCN = null;
      foreach( $attendeePart as $paramlabel => $paramvalue ) {         // start foreach 2
        if( 'value' == $paramlabel ) {
          $attendee2  .= 'MAILTO:'.$paramvalue;
        }
        elseif(( 'params' == $paramlabel ) && ( is_array( $paramvalue ))) { // start elseif
          foreach( $paramvalue as $optparamlabel => $optparamvalue ) { // start foreach 3
            $attendee11 = $attendee12 = null;
            if( is_int( $optparamlabel )) {
              $attendee1 .= $this->intAttrDelimiter.$optparamvalue;
              continue;
            }
            switch( $optparamlabel ) {                                 // start switch
              case 'CUTYPE':
              case 'PARTSTAT':
              case 'ROLE':
              case 'RSVP':
                $attendee1 .= $this->intAttrDelimiter.$optparamlabel.'="'.$optparamvalue.'"';
                break;
              case 'SENT-BY':
                $attendee1 .= $this->intAttrDelimiter.'SENT-BY="MAILTO:'.$optparamvalue.'"';
                break;
              case 'MEMBER':
                $attendee11 = $this->intAttrDelimiter.'MEMBER=';
              case 'DELEGATED-TO':
                $attendee11 = ( !$attendee11 ) ? $this->intAttrDelimiter.'DELEGATED-TO='   : $attendee11;
              case 'DELEGATED-FROM':
                $attendee11 = ( !$attendee11 ) ? $this->intAttrDelimiter.'DELEGATED-FROM=' : $attendee11;
                foreach( $optparamvalue  as $cix => $calUserAddress ) {
                  $attendee12 .= ( $cix ) ? ',' : null;
                  $attendee12 .= '"MAILTO:'.$calUserAddress.'"';
                }
                $attendee1  .= $attendee11.$attendee12;
                break;
              case 'CN':
                $attendeeCN .= $this->intAttrDelimiter.'CN="'.$optparamvalue.'"';
                break;
              case 'DIR':
                $attendee1 .= $this->intAttrDelimiter.'DIR="'.$optparamvalue.'"';
                break;
              case 'LANGUAGE':
                $attendeeLANG .= $this->intAttrDelimiter.'LANGUAGE='.$optparamvalue;
                break;
              default:
                $attendee1 .= $this->intAttrDelimiter."$optparamlabel=$optparamvalue";
                break;
            }    // end switch
          }      // end foreach 3
        }        // end elseif
      }          // end foreach 2
      $attendees .= $this->_createElement( 'ATTENDEE', $attendee1.$attendeeLANG.$attendeeCN, $attendee2 );
    }              // end foreach 1
    return $attendees;
  }
316580
public static function getSubscribedEvents()
    {
        return array(
            FOSUserEvents::CHANGE_PASSWORD_INITIALIZE => 'dispatchChangePasswordInitialize',
            FOSUserEvents::CHANGE_PASSWORD_SUCCESS => 'dispatchChangePasswordSuccess',
            FOSUserEvents::CHANGE_PASSWORD_COMPLETED => 'dispatchChangePasswordCompleted',
            FOSUserEvents::GROUP_CREATE_INITIALIZE => 'dispatchGroupCreateInitialize',
            FOSUserEvents::GROUP_CREATE_SUCCESS => 'dispatchGroupCreateSuccess',
            FOSUserEvents::GROUP_CREATE_COMPLETED => 'dispatchGroupCreateCompleted',
            FOSUserEvents::GROUP_DELETE_COMPLETED => 'dispatchGroupDeleteCompleted',
            FOSUserEvents::GROUP_EDIT_INITIALIZE => 'dispatchGroupEditInitialize',
            FOSUserEvents::GROUP_EDIT_SUCCESS => 'dispatchGroupEditSuccess',
            FOSUserEvents::GROUP_EDIT_COMPLETED => 'dispatchGroupEditCompleted',
            FOSUserEvents::PROFILE_EDIT_INITIALIZE => 'dispatchProfileEditInitialize',
            FOSUserEvents::PROFILE_EDIT_SUCCESS => 'dispatchProfileEditSuccess',
            FOSUserEvents::PROFILE_EDIT_COMPLETED => 'dispatchProfileEditCompleted',
            FOSUserEvents::REGISTRATION_INITIALIZE => 'dispatchRegistrationInitialize',
            FOSUserEvents::REGISTRATION_SUCCESS => 'dispatchRegistrationSuccess',
            FOSUserEvents::REGISTRATION_COMPLETED => 'dispatchRegistrationCompleted',
            FOSUserEvents::REGISTRATION_CONFIRM => 'dispatchRegistrationConfirm',
            FOSUserEvents::REGISTRATION_CONFIRMED => 'dispatchRegistrationConfirmed',
            FOSUserEvents::RESETTING_RESET_INITIALIZE => 'dispatchResettingResetInitialize',
            FOSUserEvents::RESETTING_RESET_SUCCESS => 'dispatchResettingResetSuccess',
            FOSUserEvents::RESETTING_RESET_COMPLETED => 'dispatchResettingResetCompleted',
            FOSUserEvents::SECURITY_IMPLICIT_LOGIN => 'dispatchSecurityImplicitLogin',
        );
    }
1251870
protected function getUserId()
    {
        if (!$this->users) {
            $userStorage = $this->entityTypeManager->getStorage('user');

            $this->users = $userStorage->loadByProperties(['status' => true]);
        }

        return array_rand($this->users);
    }
349263
public function getEvents()
    {
        $inotifyEvents = $this->readEvents();

        $inotifyEvents = is_array($inotifyEvents) ? $inotifyEvents : array();

        $last = end($inotifyEvents);
        if (IN_Q_OVERFLOW === $last['mask']) {
            throw new RuntimeException('Event queue overflowed. Either read events more frequently or increase the limit for queues. The limit can be changed in /proc/sys/fs/inotify/max_queued_events');
        }

        foreach ($inotifyEvents as $event) {
            foreach ($this->bag->get($event['wd']) as $watched) {
                $watched->setEvent($event['mask'], $event['name']);
            }
        }

        $events = array();

        foreach ($this->checkers as $meta) {
            $tracked = $meta['tracked'];
            $watched = $meta['checker'];
            foreach ($watched->getChangeset() as $change) {
                $events[] = new FilesystemEvent($tracked, $change['resource'], $change['event']);
            }
        }

        return $events;
    }
40612
protected function getListEvent()
    {
        $options = array(
            'order' => 'desc',
            'sort' => 'created',
            'limit' => $this->getLimit(),
            'severity' => $this->getParam('severity')
        );

        return (array) $this->report->getList($options);
    }
918820
protected function _populate() {
		if ($this->closed() || !$this->_result->valid()) {
			return;
		}
		$data = $this->_result->current();
		$result = $this->_set($data, null, ['exists' => true, 'original' => true]);
		$this->_result->next();

		return $result;
	}
1007916
protected function registerEvents()
    {
        $this->app->singleton('events', function () {
            $events = new \Nano7\Foundation\Events\Dispatcher($this->app);

            // Carregar listens
            $listen_file = app_path('listens.php');
            if (file_exists($listen_file)) {
                require $listen_file;
            }

            return $events;
        });
    }
419439
public function getTicketQuantities() {
		$quantities = array();
		foreach($this->Tickets() as $ticket){
			$quantities[$ticket->ID] = $this->Attendees()
				->filter("TicketID", $ticket->ID)
				->count();
		}
		return $quantities;
	}
750961
public function getCounts()
    {
        return array(
            'habbo' => count($this->habbo),
            'badges' => count($this->badges),
            'friends' => count($this->friends),
            'groups' => count($this->groups),
            'rooms' => count($this->rooms),
        );
    }
559195
public function get_selected_users() {
        // Do a lazy load.
        if (is_null($this->selected)) {
            $this->selected = $this->load_selected_users();
        }
        return $this->selected;
    }
1063211
public function getAssignedMembers()
    {
        $members = ArrayList::create($this->Users()->toArray());
        $groups  = $this->Groups();

        foreach ($groups as $group) {
            $members->merge($group->Members());
        }

        $members->removeDuplicates();
        return $members;
    }