Returns the guildRewards API
@return \WowApi\Api\GuildRewards
185588
public function getGuildRewardsApi()
    {
        if (!$this->apis->has('guildRewards')) {
            $this->apis->set('guildRewards', new GuildRewards($this));
        }

        return $this->apis->get('guildRewards');
    }
240234
public function getCredentialsFetcher()
    {
        $fetcher = null;

        if ($this->credentialsFetcher) {
            $fetcher = $this->credentialsFetcher;
        } elseif ($this->keyFile) {
            $fetcher = CredentialsLoader::makeCredentials($this->scopes, $this->keyFile);
        } else {
            try {
                $fetcher = $this->getADC();
            } catch (\DomainException $ex) {
                $fetcher = new AnonymousCredentials();
            }
        }

        return new FetchAuthTokenCache(
            $fetcher,
            $this->authCacheOptions,
            $this->authCache
        );
    }
861732
public function getRegistryAlias()
    {
        if ($this->_registryAlias === null) {
            $this->_registryAlias = $this->getAlias();
        }

        return $this->_registryAlias;
    }
1233301
public function getMenu()
    {
        return $this->auth(function () {
            return $this->http->getJson($this->baseUrl . 'cgi-bin/menu/get?access_token=' . $this->accessToken);
        });
    }
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;
    }
816433
public function GetApplicants() {
      $ApplicantRoleID = (int)C('Garden.Registration.ApplicantRoleID', 0);
      if ($ApplicantRoleID == 0)
         return new Gdn_DataSet();

      return $this->SQL->Select('u.*')
         ->From('User u')
         ->Join('UserRole ur', 'u.UserID = ur.UserID')
         ->Where('ur.RoleID', $ApplicantRoleID, TRUE, FALSE)
//         ->GroupBy('UserID')
         ->OrderBy('DateInserted', 'desc')
         ->Get();
   }
636842
public function getTournaments() {
        $response = Guzzle::get('tournaments');

        $tournaments = [];
        foreach ($response as $tourney) {
            $tournaments[] = new Tournament($tourney->tournament);
        }

        return $tournaments;
    }
319184
public function getapplyprotocol()
    {
        $this->apitype = 'card';
        $this->module  = 'getapplyprotocol';

        $queryStr = [];
        $res      = $this->_get('', $queryStr);

        return $res;
    }
15486
public function getUrl()
    {
        if (!userHasPermission('admin:cdn:manager:object:browse')) {
            $oHttpCodes = Factory::service('HttpCodes');
            throw new ApiException(
                'You do not have permission to access this resource',
                $oHttpCodes::STATUS_UNAUTHORIZED
            );
        }

        $oInput = Factory::service('Input');

        return Factory::factory('ApiResponse', 'nails/module-api')
            ->setData(site_url(
                'admin/cdn/manager?' .
                http_build_query([
                    'bucket'   => $oInput->get('bucket'),
                    'callback' => $oInput->get('callback'),
                ])
            ));
    }
268545
public function getAuthor()
    {
        $module = Yii::$app->getModule(Module::$name);

        return $this->hasOne($module->userIdentityClass, ['id' => 'createdBy']);
    }
588787
function getChildren() {
        return $this->guild->channels->filter(function ($channel) {
            return ($channel->parentID === $this->id);
        });
    }
1160104
public function getCollectionAction()
    {
        $application = $this->getApplication();

        $bundles = [];
        
        foreach ($this->getApplication()->getBundles() as $bundle) {
            if ($this->isGranted('EDIT', $bundle) || ($bundle->isEnabled() && $this->isGranted('VIEW', $bundle))) {
                $bundles[] = $bundle;
            }
        }

        return $this->createJsonResponse($bundles, 200, array(
            'Content-Range' => '0-'.(count($bundles) - 1).'/'.count($bundles),
        ));
    }
295197
public static function getHeaderNavigation()
    {
        $builder = self::where('is_hidden', 0);
        $builder->where('is_header', 1);
        if (!\Auth::check()) {
            $builder->where('name', '!=', 'My Account');
        }
        $items = $builder->orderBy('header_order')
            ->select('id', 'icon', 'name', 'title', 'description', 'slug', 'url', 'parent_id',
                'views')
            ->get()
            ->groupBy('parent_id');

        if (count($items)) {
            $items['root'] = collect();
            if (isset($items['']) || isset($items[0])) {
                $items['root'] = isset($items['']) ? $items[''] : $items[0];
                unset($items['']);
                unset($items[0]);
            }
        }

        return $items;
    }
820916
protected function __apiStore ()
    {
        $data = $this->getInputData ();

        $record = HCGroups::create (array_get ($data, 'record'));
        $record->users()->sync(array_get($data, 'users'));

        return $this->apiShow ($record->id);
    }
419772
public function getMerchant()
    {
        if ($this->_merchant === null) {
            $this->_merchant = Yii::createObject(Merchant::className(), [$this]);
        }
        return $this->_merchant;
    }
541851
public function getGuildApi()
    {
        if (!$this->apis->has('guild')) {
            $this->apis->set('guild', new Guild($this));
        }

        return $this->apis->get('guild');
    }
1007807
public function getRecipeApi()
    {
        if (!$this->apis->has('recipes')) {
            $this->apis->set('recipes', new Recipes($this));
            ;
        }

        return $this->apis->get('recipes');
    }