Gets the User's Activity.

@return array Array of Api\Story
429396
public function story(int $page = 0, bool $includeComments = true, int $offset = 0, int $blockSize = 10) : array
    {
        $returnActivity = [];
        $activity = $this->get(sprintf(Story::ACTIVITY_ENDPOINT . 'v2/users/%s/feed/%d', $this->onlineIdParameter, $page), [
            'includeComments' => $includeComments,
            'offset' => $offset,
            'blockSize' => $blockSize
        ]);

        foreach ($activity->feed as $story) {
            // Some stories might just be a collection of similiar stories (like trophy unlocks)
            // These stories can't be interacted with like other stories, so we need to grab the condensed stories
            if (isset($story->condensedStories)) {
                foreach ($story->condensedStories as $condensed) {
                    $returnActivity[] = new Story($this->client, $condensed, $this);
                }
            } else {
                $returnActivity[] = new Story($this->client, $story, $this);
            }
        }

        return $returnActivity;
    }
1041861
private function getUser()
    {
        $user = [];
        $user_area = $this->_parser->find('.table-recently-updated', 0);
        if ($user_area) {
            foreach ($user_area->find('tr') as $each_user) {
                if (!$each_user->find('td', 0)->find('div', 0)) {
                    continue;
                }

                $temp_user = [];

                $username_area = $each_user->find('td', 0);

                $temp_user['image'] = $this->getUserImage($username_area);
                $temp_user['username'] = $this->getUsername($username_area);
                $temp_user['score'] = $this->getUserScore($each_user);
                $temp_user['status'] = $this->getUserStatus($each_user);

                if ($this->_type == 'anime') {
                    $temp_user['episode'] = $this->getUserProgress($each_user, 3);
                    $temp_user['date'] = $this->getUserDate($each_user, 4);
                } else {
                    $temp_user['volume'] = $this->getUserProgress($each_user, 3);
                    $temp_user['chapter'] = $this->getUserProgress($each_user, 4);
                    $temp_user['date'] = $this->getUserDate($each_user, 5);
                }

                $user[] = $temp_user;
            }
        }

        return $user;
    }
1146517
protected function _getUserData()
     {
         $me = $this->get('me');
         
         $data = array(
                'profile_url' => 'https://www.facebook.com/profile.php?id='.$me->id,
                'name' => $me->name,
                'id' => $me->id,
                'username' => $me->username,
                'email' => $me->email,
                'description' => $me->about,
                'thumb_avatar' => $this->getRequest(array('url' => $this->api_url.'/me/picture'))->getURL(),
                'large_avatar' => $this->getRequest(array(
                    'url' => $this->api_url.'/me/picture', 
                    'data' => array('type' => 'large')
                ))->getURL(),
            );

         return $data;
     }
1301122
public function getList()
    {
        $service = $this->getDomainService();
        $appId = $this->getEvent()
            ->getRouteMatch()
            ->getParam('appId');
        
        $origin = parse_url($this->getRequest()->getHeader('Referer'));
        $uri = $this->getRequest()->getUri();
        $domainId = $uri->getHost();
        if (isset($origin['query'])) {
            parse_str($origin['query'], $query);
            $domainId = $query['xdm_e'];
        }
        
        $domain = $service->getDomainMapper()->findOneBy(array(
            'domain' => $domainId
        ));
        
        $stories = array();
        
        if ($domain) {
            $storymappings = $domain->getStoryMappings();
            foreach ($storymappings as $sm) {
                $conditions = array();
                $events = array(
                    'before' => array(),
                    'after' => array()
                );
                $objects = array();
                
                $i = 0;
                foreach ($sm->getObjects() as $objectMapping) {
                    $objects[$i]['id'] = $objectMapping->getObject()->getCode();
                    $attributes = array();
                    foreach ($objectMapping->getAttributes() as $attributeMapping) {
                        $attributes[] = array(
                            'name' => $attributeMapping->getAttribute()->getCode(),
                            'xpath' => $attributeMapping->getXpath()
                        );
                    }
                    $objects[$i]['properties'] = $attributes;
                    ++ $i;
                }
                
                if ($sm->getConditionsUrl() != '') {
                    $conditions['url'] = $sm->getConditionsUrl();
                }
                
                if ($sm->getConditionsXpath() != '') {
                    $conditions['xpath'] = $sm->getConditionsXpath();
                }
                
                if ($sm->getEventBeforeUrl() != '') {
                    $events['before']['url'] = $sm->getEventBeforeUrl();
                }
                
                if ($sm->getEventBeforeXpath() != '') {
                    $events['before']['xpath'] = $sm->getEventBeforeXpath();
                }
                
                if ($sm->getEventAfterUrl() != '') {
                    $events['after']['url'] = $sm->getEventAfterUrl();
                }
                
                if ($sm->getEventAfterXpath() != '') {
                    $events['after']['xpath'] = $sm->getEventAfterXpath();
                }
                
                $stories[$sm->getStory()->getCode()] = array(
                    'story_mapping_id' => $sm->getId(),
                    'events' => $events,
                    'conditions' => $conditions,
                    'objects' => $objects
                );
            }
        }
        
        $response = $this->getResponse();
        $contentType = 'application/json';
        $adapter = '\Zend\Serializer\Adapter\Json';
        $response->getHeaders()->addHeaderLine('Content-Type', $contentType);
        $adapter = new $adapter();
        
        $content = array(
            'library' => array(
                'config' => array(
                    'broadcast' => false
                ),
                'stories' => $stories
            )
        );
        
        $response->setContent($adapter->serialize($content));
        
        return $response;
    }
945347
public function getData()
    {
        $data = $this->httpRequest->request->all();
        $data['secretWord'] = $this->getSecretWord();
        $data['accountNumber'] = $this->getAccountNumber();

        return $data;
    }
1153387
protected function _getUserData()
    {
        $profile = $this->get('userinfo');
        $data = array(
            'id' => $profile->id ,
            'profile_url' => $profile->link,
            'name' => $profile->name,
            'large_avatar' => $profile->picture,
            'thumb_avatar' => $profile->picture,
        );

        return $data;
    }
763659
public static function getCurrent()
    {
        $class = get_called_class();
        if (Session::get('user')) {
            return $class::search()->where('user_id', Session::get('user')->user_id)->execOne();
        }
        return false;
    }
908988
public function getPluginActivities() {
		$activities = $this->getActivities();

		if ( ! isset( $activities[ $this->plugin ] ) ) {
			$activities[ $this->plugin ] = array();
		}

		return $activities[ $this->plugin ];
	}
920367
public function getActiveUser()
    {
        if ($this->_oActiveUserObject === null) {
            $this->_oActiveUserObject = false;

            /** @var oxUser $oUser */
            $oUser = $this->getObjectFactory()->createOxidObject('oxUser');

            if ($oUser->loadActiveUser() === true) {
                $this->_oActiveUserObject = $oUser;
            }
        }

        return $this->_oActiveUserObject;
    }
995352
public function getUserData()
    {
        if (!$this->tokenStorage->getToken()
            || !$this->authorizationChecker->isGranted('IS_AUTHENTICATED_REMEMBERED')
        ) {
            return null;
        }

        $user = $this->tokenStorage->getToken()->getUser();

        if (!$user) {
            return null;
        }

        return $this->userHelper->buildUserData($user);
    }
972880
public function getCommitActivity(): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/stats/commit_activity',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo()));
    }
376481
protected function getActiveUser()
    {
        if (!Config::has('culpa.users.active_user')) {
            return Auth::check() ? Auth::user() : null;
        }

        $fn = Config::get('culpa.users.active_user');
        if (!is_callable($fn)) {
            throw new \Exception('culpa.users.active_user should be a closure');
        }

        return $fn();
    }
327202
function GetDetailedUsersArray()
  {
      $users_array = array();
      $result = $this->GetNextUserArray(TRUE);
      if (isset($result['user'])) {
          $users_array[$result['user']] = $result;
      }
      do {
          if ($result = $this->GetNextUserArray()) {
              if (isset($result['user'])) {
                  $users_array[$result['user']] = $result;
              }
          }
      } while (FALSE !== $result);
      return $users_array;
  }
303757
public function get_activities_and_headings() {
        global $OUTPUT;
        $moduleinfo = get_fast_modinfo($this->courseid);
        $sections = $moduleinfo->get_sections();
        $data = new stdClass;
        $data->courseid = $this->courseid;
        $data->sesskey = sesskey();
        $data->helpicon = $OUTPUT->help_icon('bulkcompletiontracking', 'core_completion');
        $data->sections = [];
        foreach ($sections as $sectionnumber => $section) {
            $sectioninfo = $moduleinfo->get_section_info($sectionnumber);

            $sectionobject = new stdClass();
            $sectionobject->sectionnumber = $sectionnumber;
            $sectionobject->name = get_section_name($this->courseid, $sectioninfo);
            $sectionobject->activities = $this->get_activities($section, true);
            $data->sections[] = $sectionobject;
        }
        return $data;
    }
898603
public function getActionDescription()
    {
        $entityManager = $this->getApplication()->make(EntityManagerInterface::class);

        /** @var User $user */
        $user = $entityManager->find(User::class, $this->notification->getUserID());
        $actor = null;

        $actorID = $this->notification->getActorID();
        if ($actorID) {
            /** @var User $actor */
            $actor = $entityManager->find(User::class, $actorID);
        }

        if ($actorID) {
            return t(
                '%s has been manually deactivated by %s',
                $this->getUserLink($user),
                $this->getUserLink($actor));
        }

        return t('%s has been automatically deactivated.', $this->getUserLink($user));
    }
1283749
public function getUsersGender()
    {
        $dates = $this->getStartEndDate();

        $data = LaravelAnalytics::performQuery($dates['start'], $dates['end'], 'ga:sessions',
            ['dimensions' => 'ga:userGender']);

        $items = [];
        $rows = $data->rows;
        if (is_null($rows)) {
            return [];
        }
        shuffle($rows); // shuffle results / randomimize chart color sections
        foreach ($rows as $k => $item) {
            $items[] = $this->getPieDataSet(ucfirst($item[0]), $item[1]);
        }

        return $items;
    }
195849
public function getAccounts()
    {
        $connected = [];
        /** @var Social[] $accounts */
        $accounts = $this->hasMany(Social::className(), ['user_id' => 'id'])->all();
        /**
         * @var Social $account
         */
        foreach ($accounts as $account) {
            $connected[$account->provider] = $account;
        }

        return $connected;
    }