Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 1068 lines (32 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 15 classes

Google_Service_GamesConfiguration:: (1 method):
  __construct()

Google_Service_GamesConfiguration_AchievementConfigurations_Resource:: (6 methods):
  delete()
  get()
  insert()
  listAchievementConfigurations()
  patch()
  update()

Google_Service_GamesConfiguration_ImageConfigurations_Resource:: (1 method):
  upload()

Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource:: (6 methods):
  delete()
  get()
  insert()
  listLeaderboardConfigurations()
  patch()
  update()

Google_Service_GamesConfiguration_AchievementConfiguration:: (16 methods):
  setAchievementType()
  getAchievementType()
  setDraft()
  getDraft()
  setId()
  getId()
  setInitialState()
  getInitialState()
  setKind()
  getKind()
  setPublished()
  getPublished()
  setStepsToUnlock()
  getStepsToUnlock()
  setToken()
  getToken()

Google_Service_GamesConfiguration_AchievementConfigurationDetail:: (12 methods):
  setDescription()
  getDescription()
  setIconUrl()
  getIconUrl()
  setKind()
  getKind()
  setName()
  getName()
  setPointValue()
  getPointValue()
  setSortRank()
  getSortRank()

Google_Service_GamesConfiguration_AchievementConfigurationListResponse:: (6 methods):
  setItems()
  getItems()
  setKind()
  getKind()
  setNextPageToken()
  getNextPageToken()

Google_Service_GamesConfiguration_GamesNumberAffixConfiguration:: (12 methods):
  setFew()
  getFew()
  setMany()
  getMany()
  setOne()
  getOne()
  setOther()
  getOther()
  setTwo()
  getTwo()
  setZero()
  getZero()

Google_Service_GamesConfiguration_GamesNumberFormatConfiguration:: (8 methods):
  setCurrencyCode()
  getCurrencyCode()
  setNumDecimalPlaces()
  getNumDecimalPlaces()
  setNumberFormatType()
  getNumberFormatType()
  setSuffix()
  getSuffix()

Google_Service_GamesConfiguration_ImageConfiguration:: (8 methods):
  setImageType()
  getImageType()
  setKind()
  getKind()
  setResourceId()
  getResourceId()
  setUrl()
  getUrl()

Google_Service_GamesConfiguration_LeaderboardConfiguration:: (16 methods):
  setDraft()
  getDraft()
  setId()
  getId()
  setKind()
  getKind()
  setPublished()
  getPublished()
  setScoreMax()
  getScoreMax()
  setScoreMin()
  getScoreMin()
  setScoreOrder()
  getScoreOrder()
  setToken()
  getToken()

Google_Service_GamesConfiguration_LeaderboardConfigurationDetail:: (10 methods):
  setIconUrl()
  getIconUrl()
  setKind()
  getKind()
  setName()
  getName()
  setScoreFormat()
  getScoreFormat()
  setSortRank()
  getSortRank()

Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse:: (6 methods):
  setItems()
  getItems()
  setKind()
  getKind()
  setNextPageToken()
  getNextPageToken()

Google_Service_GamesConfiguration_LocalizedString:: (6 methods):
  setKind()
  getKind()
  setLocale()
  getLocale()
  setValue()
  getValue()

Google_Service_GamesConfiguration_LocalizedStringBundle:: (4 methods):
  setKind()
  getKind()
  setTranslations()
  getTranslations()


Class: Google_Service_GamesConfiguration  - X-Ref

Service definition for GamesConfiguration (v1configuration).

<p>
The Publishing API for Google Play Game Services.</p>

<p>
For more information about this service, see the API
<a href="https://developers.google.com/games/services" target="_blank">Documentation</a>
</p>

__construct(Google_Client $client)   X-Ref
Constructs the internal representation of the GamesConfiguration service.

param: Google_Client $client

Class: Google_Service_GamesConfiguration_AchievementConfigurations_Resource  - X-Ref

The "achievementConfigurations" collection of methods.
Typical usage is:
<code>
$gamesConfigurationService = new Google_Service_GamesConfiguration(...);
$achievementConfigurations = $gamesConfigurationService->achievementConfigurations;
</code>

delete($achievementId, $optParams = array()   X-Ref
Delete the achievement configuration with the given ID.
(achievementConfigurations.delete)

param: string $achievementId The ID of the achievement used by this method.
param: array $optParams Optional parameters.

get($achievementId, $optParams = array()   X-Ref
Retrieves the metadata of the achievement configuration with the given ID.
(achievementConfigurations.get)

param: string $achievementId The ID of the achievement used by this method.
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_AchievementConfiguration

insert($applicationId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array()   X-Ref
Insert a new achievement configuration in this application.
(achievementConfigurations.insert)

param: string $applicationId The application ID from the Google Play
param: Google_AchievementConfiguration $postBody
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_AchievementConfiguration

listAchievementConfigurations($applicationId, $optParams = array()   X-Ref
Returns a list of the achievement configurations in this application.
(achievementConfigurations.listAchievementConfigurations)

param: string $applicationId The application ID from the Google Play
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_AchievementConfigurationListResponse

patch($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array()   X-Ref
Update the metadata of the achievement configuration with the given ID. This
method supports patch semantics. (achievementConfigurations.patch)

param: string $achievementId The ID of the achievement used by this method.
param: Google_AchievementConfiguration $postBody
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_AchievementConfiguration

update($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array()   X-Ref
Update the metadata of the achievement configuration with the given ID.
(achievementConfigurations.update)

param: string $achievementId The ID of the achievement used by this method.
param: Google_AchievementConfiguration $postBody
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_AchievementConfiguration

Class: Google_Service_GamesConfiguration_ImageConfigurations_Resource  - X-Ref

The "imageConfigurations" collection of methods.
Typical usage is:
<code>
$gamesConfigurationService = new Google_Service_GamesConfiguration(...);
$imageConfigurations = $gamesConfigurationService->imageConfigurations;
</code>

upload($resourceId, $imageType, $optParams = array()   X-Ref
Uploads an image for a resource with the given ID and image type.
(imageConfigurations.upload)

param: string $resourceId The ID of the resource used by this method.
param: string $imageType Selects which image in a resource for this method.
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_ImageConfiguration

Class: Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource  - X-Ref

The "leaderboardConfigurations" collection of methods.
Typical usage is:
<code>
$gamesConfigurationService = new Google_Service_GamesConfiguration(...);
$leaderboardConfigurations = $gamesConfigurationService->leaderboardConfigurations;
</code>

delete($leaderboardId, $optParams = array()   X-Ref
Delete the leaderboard configuration with the given ID.
(leaderboardConfigurations.delete)

param: string $leaderboardId The ID of the leaderboard.
param: array $optParams Optional parameters.

get($leaderboardId, $optParams = array()   X-Ref
Retrieves the metadata of the leaderboard configuration with the given ID.
(leaderboardConfigurations.get)

param: string $leaderboardId The ID of the leaderboard.
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_LeaderboardConfiguration

insert($applicationId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array()   X-Ref
Insert a new leaderboard configuration in this application.
(leaderboardConfigurations.insert)

param: string $applicationId The application ID from the Google Play
param: Google_LeaderboardConfiguration $postBody
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_LeaderboardConfiguration

listLeaderboardConfigurations($applicationId, $optParams = array()   X-Ref
Returns a list of the leaderboard configurations in this application.
(leaderboardConfigurations.listLeaderboardConfigurations)

param: string $applicationId The application ID from the Google Play
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse

patch($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array()   X-Ref
Update the metadata of the leaderboard configuration with the given ID. This
method supports patch semantics. (leaderboardConfigurations.patch)

param: string $leaderboardId The ID of the leaderboard.
param: Google_LeaderboardConfiguration $postBody
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_LeaderboardConfiguration

update($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array()   X-Ref
Update the metadata of the leaderboard configuration with the given ID.
(leaderboardConfigurations.update)

param: string $leaderboardId The ID of the leaderboard.
param: Google_LeaderboardConfiguration $postBody
param: array $optParams Optional parameters.
return: Google_Service_GamesConfiguration_LeaderboardConfiguration

Class: Google_Service_GamesConfiguration_AchievementConfiguration  - X-Ref

setAchievementType($achievementType)   X-Ref
No description

getAchievementType()   X-Ref
No description

setDraft(Google_Service_GamesConfiguration_AchievementConfigurationDetail $draft)   X-Ref
No description

getDraft()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setInitialState($initialState)   X-Ref
No description

getInitialState()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setPublished(Google_Service_GamesConfiguration_AchievementConfigurationDetail $published)   X-Ref
No description

getPublished()   X-Ref
No description

setStepsToUnlock($stepsToUnlock)   X-Ref
No description

getStepsToUnlock()   X-Ref
No description

setToken($token)   X-Ref
No description

getToken()   X-Ref
No description

Class: Google_Service_GamesConfiguration_AchievementConfigurationDetail  - X-Ref

setDescription(Google_Service_GamesConfiguration_LocalizedStringBundle $description)   X-Ref
No description

getDescription()   X-Ref
No description

setIconUrl($iconUrl)   X-Ref
No description

getIconUrl()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name)   X-Ref
No description

getName()   X-Ref
No description

setPointValue($pointValue)   X-Ref
No description

getPointValue()   X-Ref
No description

setSortRank($sortRank)   X-Ref
No description

getSortRank()   X-Ref
No description

Class: Google_Service_GamesConfiguration_AchievementConfigurationListResponse  - X-Ref

setItems($items)   X-Ref
No description

getItems()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setNextPageToken($nextPageToken)   X-Ref
No description

getNextPageToken()   X-Ref
No description

Class: Google_Service_GamesConfiguration_GamesNumberAffixConfiguration  - X-Ref

setFew(Google_Service_GamesConfiguration_LocalizedStringBundle $few)   X-Ref
No description

getFew()   X-Ref
No description

setMany(Google_Service_GamesConfiguration_LocalizedStringBundle $many)   X-Ref
No description

getMany()   X-Ref
No description

setOne(Google_Service_GamesConfiguration_LocalizedStringBundle $one)   X-Ref
No description

getOne()   X-Ref
No description

setOther(Google_Service_GamesConfiguration_LocalizedStringBundle $other)   X-Ref
No description

getOther()   X-Ref
No description

setTwo(Google_Service_GamesConfiguration_LocalizedStringBundle $two)   X-Ref
No description

getTwo()   X-Ref
No description

setZero(Google_Service_GamesConfiguration_LocalizedStringBundle $zero)   X-Ref
No description

getZero()   X-Ref
No description

Class: Google_Service_GamesConfiguration_GamesNumberFormatConfiguration  - X-Ref

setCurrencyCode($currencyCode)   X-Ref
No description

getCurrencyCode()   X-Ref
No description

setNumDecimalPlaces($numDecimalPlaces)   X-Ref
No description

getNumDecimalPlaces()   X-Ref
No description

setNumberFormatType($numberFormatType)   X-Ref
No description

getNumberFormatType()   X-Ref
No description

setSuffix(Google_Service_GamesConfiguration_GamesNumberAffixConfiguration $suffix)   X-Ref
No description

getSuffix()   X-Ref
No description

Class: Google_Service_GamesConfiguration_ImageConfiguration  - X-Ref

setImageType($imageType)   X-Ref
No description

getImageType()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setResourceId($resourceId)   X-Ref
No description

getResourceId()   X-Ref
No description

setUrl($url)   X-Ref
No description

getUrl()   X-Ref
No description

Class: Google_Service_GamesConfiguration_LeaderboardConfiguration  - X-Ref

setDraft(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $draft)   X-Ref
No description

getDraft()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setPublished(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $published)   X-Ref
No description

getPublished()   X-Ref
No description

setScoreMax($scoreMax)   X-Ref
No description

getScoreMax()   X-Ref
No description

setScoreMin($scoreMin)   X-Ref
No description

getScoreMin()   X-Ref
No description

setScoreOrder($scoreOrder)   X-Ref
No description

getScoreOrder()   X-Ref
No description

setToken($token)   X-Ref
No description

getToken()   X-Ref
No description

Class: Google_Service_GamesConfiguration_LeaderboardConfigurationDetail  - X-Ref

setIconUrl($iconUrl)   X-Ref
No description

getIconUrl()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name)   X-Ref
No description

getName()   X-Ref
No description

setScoreFormat(Google_Service_GamesConfiguration_GamesNumberFormatConfiguration $scoreFormat)   X-Ref
No description

getScoreFormat()   X-Ref
No description

setSortRank($sortRank)   X-Ref
No description

getSortRank()   X-Ref
No description

Class: Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse  - X-Ref

setItems($items)   X-Ref
No description

getItems()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setNextPageToken($nextPageToken)   X-Ref
No description

getNextPageToken()   X-Ref
No description

Class: Google_Service_GamesConfiguration_LocalizedString  - X-Ref

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setLocale($locale)   X-Ref
No description

getLocale()   X-Ref
No description

setValue($value)   X-Ref
No description

getValue()   X-Ref
No description

Class: Google_Service_GamesConfiguration_LocalizedStringBundle  - X-Ref

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setTranslations($translations)   X-Ref
No description

getTranslations()   X-Ref
No description