Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

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

(no description)

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

Defines 28 classes

Google_Service_Mirror:: (1 method):
  __construct()

Google_Service_Mirror_Accounts_Resource:: (1 method):
  insert()

Google_Service_Mirror_Contacts_Resource:: (6 methods):
  delete()
  get()
  insert()
  listContacts()
  patch()
  update()

Google_Service_Mirror_Locations_Resource:: (2 methods):
  get()
  listLocations()

Google_Service_Mirror_Settings_Resource:: (1 method):
  get()

Google_Service_Mirror_Subscriptions_Resource:: (4 methods):
  delete()
  insert()
  listSubscriptions()
  update()

Google_Service_Mirror_Timeline_Resource:: (6 methods):
  delete()
  get()
  insert()
  listTimeline()
  patch()
  update()

Google_Service_Mirror_TimelineAttachments_Resource:: (4 methods):
  delete()
  get()
  insert()
  listTimelineAttachments()

Google_Service_Mirror_Account:: (8 methods):
  setAuthTokens()
  getAuthTokens()
  setFeatures()
  getFeatures()
  setPassword()
  getPassword()
  setUserData()
  getUserData()

Google_Service_Mirror_Attachment:: (8 methods):
  setContentType()
  getContentType()
  setContentUrl()
  getContentUrl()
  setId()
  getId()
  setIsProcessingContent()
  getIsProcessingContent()

Google_Service_Mirror_AttachmentsListResponse:: (4 methods):
  setItems()
  getItems()
  setKind()
  getKind()

Google_Service_Mirror_AuthToken:: (4 methods):
  setAuthToken()
  getAuthToken()
  setType()
  getType()

Google_Service_Mirror_Command:: (2 methods):
  setType()
  getType()

Google_Service_Mirror_Contact:: (24 methods):
  setAcceptCommands()
  getAcceptCommands()
  setAcceptTypes()
  getAcceptTypes()
  setDisplayName()
  getDisplayName()
  setId()
  getId()
  setImageUrls()
  getImageUrls()
  setKind()
  getKind()
  setPhoneNumber()
  getPhoneNumber()
  setPriority()
  getPriority()
  setSharingFeatures()
  getSharingFeatures()
  setSource()
  getSource()
  setSpeakableName()
  getSpeakableName()
  setType()
  getType()

Google_Service_Mirror_ContactsListResponse:: (4 methods):
  setItems()
  getItems()
  setKind()
  getKind()

Google_Service_Mirror_Location:: (16 methods):
  setAccuracy()
  getAccuracy()
  setAddress()
  getAddress()
  setDisplayName()
  getDisplayName()
  setId()
  getId()
  setKind()
  getKind()
  setLatitude()
  getLatitude()
  setLongitude()
  getLongitude()
  setTimestamp()
  getTimestamp()

Google_Service_Mirror_LocationsListResponse:: (4 methods):
  setItems()
  getItems()
  setKind()
  getKind()

Google_Service_Mirror_MenuItem:: (12 methods):
  setAction()
  getAction()
  setContextualCommand()
  getContextualCommand()
  setId()
  getId()
  setPayload()
  getPayload()
  setRemoveWhenSelected()
  getRemoveWhenSelected()
  setValues()
  getValues()

Google_Service_Mirror_MenuValue:: (6 methods):
  setDisplayName()
  getDisplayName()
  setIconUrl()
  getIconUrl()
  setState()
  getState()

Google_Service_Mirror_Notification:: (12 methods):
  setCollection()
  getCollection()
  setItemId()
  getItemId()
  setOperation()
  getOperation()
  setUserActions()
  getUserActions()
  setUserToken()
  getUserToken()
  setVerifyToken()
  getVerifyToken()

Google_Service_Mirror_NotificationConfig:: (4 methods):
  setDeliveryTime()
  getDeliveryTime()
  setLevel()
  getLevel()

Google_Service_Mirror_Setting:: (6 methods):
  setId()
  getId()
  setKind()
  getKind()
  setValue()
  getValue()

Google_Service_Mirror_Subscription:: (18 methods):
  setCallbackUrl()
  getCallbackUrl()
  setCollection()
  getCollection()
  setId()
  getId()
  setKind()
  getKind()
  setNotification()
  getNotification()
  setOperation()
  getOperation()
  setUpdated()
  getUpdated()
  setUserToken()
  getUserToken()
  setVerifyToken()
  getVerifyToken()

Google_Service_Mirror_SubscriptionsListResponse:: (4 methods):
  setItems()
  getItems()
  setKind()
  getKind()

Google_Service_Mirror_TimelineItem:: (52 methods):
  setAttachments()
  getAttachments()
  setBundleId()
  getBundleId()
  setCanonicalUrl()
  getCanonicalUrl()
  setCreated()
  getCreated()
  setCreator()
  getCreator()
  setDisplayTime()
  getDisplayTime()
  setEtag()
  getEtag()
  setHtml()
  getHtml()
  setId()
  getId()
  setInReplyTo()
  getInReplyTo()
  setIsBundleCover()
  getIsBundleCover()
  setIsDeleted()
  getIsDeleted()
  setIsPinned()
  getIsPinned()
  setKind()
  getKind()
  setLocation()
  getLocation()
  setMenuItems()
  getMenuItems()
  setNotification()
  getNotification()
  setPinScore()
  getPinScore()
  setRecipients()
  getRecipients()
  setSelfLink()
  getSelfLink()
  setSourceItemId()
  getSourceItemId()
  setSpeakableText()
  getSpeakableText()
  setSpeakableType()
  getSpeakableType()
  setText()
  getText()
  setTitle()
  getTitle()
  setUpdated()
  getUpdated()

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

Google_Service_Mirror_UserAction:: (4 methods):
  setPayload()
  getPayload()
  setType()
  getType()

Google_Service_Mirror_UserData:: (4 methods):
  setKey()
  getKey()
  setValue()
  getValue()


Class: Google_Service_Mirror  - X-Ref

Service definition for Mirror (v1).

<p>
API for interacting with Glass users via the timeline.</p>

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

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

param: Google_Client $client

Class: Google_Service_Mirror_Accounts_Resource  - X-Ref

The "accounts" collection of methods.
Typical usage is:
<code>
$mirrorService = new Google_Service_Mirror(...);
$accounts = $mirrorService->accounts;
</code>

insert($userToken, $accountType, $accountName, Google_Service_Mirror_Account $postBody, $optParams = array()   X-Ref
Inserts a new account for a user (accounts.insert)

param: string $userToken The ID for the user.
param: string $accountType Account type to be passed to Android Account
param: string $accountName The name of the account to be passed to the
param: Google_Account $postBody
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Account

Class: Google_Service_Mirror_Contacts_Resource  - X-Ref

The "contacts" collection of methods.
Typical usage is:
<code>
$mirrorService = new Google_Service_Mirror(...);
$contacts = $mirrorService->contacts;
</code>

delete($id, $optParams = array()   X-Ref
Deletes a contact. (contacts.delete)

param: string $id The ID of the contact.
param: array $optParams Optional parameters.

get($id, $optParams = array()   X-Ref
Gets a single contact by ID. (contacts.get)

param: string $id The ID of the contact.
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Contact

insert(Google_Service_Mirror_Contact $postBody, $optParams = array()   X-Ref
Inserts a new contact. (contacts.insert)

param: Google_Contact $postBody
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Contact

listContacts($optParams = array()   X-Ref
Retrieves a list of contacts for the authenticated user.
(contacts.listContacts)

param: array $optParams Optional parameters.
return: Google_Service_Mirror_ContactsListResponse

patch($id, Google_Service_Mirror_Contact $postBody, $optParams = array()   X-Ref
Updates a contact in place. This method supports patch semantics.
(contacts.patch)

param: string $id The ID of the contact.
param: Google_Contact $postBody
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Contact

update($id, Google_Service_Mirror_Contact $postBody, $optParams = array()   X-Ref
Updates a contact in place. (contacts.update)

param: string $id The ID of the contact.
param: Google_Contact $postBody
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Contact

Class: Google_Service_Mirror_Locations_Resource  - X-Ref

The "locations" collection of methods.
Typical usage is:
<code>
$mirrorService = new Google_Service_Mirror(...);
$locations = $mirrorService->locations;
</code>

get($id, $optParams = array()   X-Ref
Gets a single location by ID. (locations.get)

param: string $id The ID of the location or latest for the last known
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Location

listLocations($optParams = array()   X-Ref
Retrieves a list of locations for the user. (locations.listLocations)

param: array $optParams Optional parameters.
return: Google_Service_Mirror_LocationsListResponse

Class: Google_Service_Mirror_Settings_Resource  - X-Ref

The "settings" collection of methods.
Typical usage is:
<code>
$mirrorService = new Google_Service_Mirror(...);
$settings = $mirrorService->settings;
</code>

get($id, $optParams = array()   X-Ref
Gets a single setting by ID. (settings.get)

param: string $id The ID of the setting. The following IDs are valid: -
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Setting

Class: Google_Service_Mirror_Subscriptions_Resource  - X-Ref

The "subscriptions" collection of methods.
Typical usage is:
<code>
$mirrorService = new Google_Service_Mirror(...);
$subscriptions = $mirrorService->subscriptions;
</code>

delete($id, $optParams = array()   X-Ref
Deletes a subscription. (subscriptions.delete)

param: string $id The ID of the subscription.
param: array $optParams Optional parameters.

insert(Google_Service_Mirror_Subscription $postBody, $optParams = array()   X-Ref
Creates a new subscription. (subscriptions.insert)

param: Google_Subscription $postBody
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Subscription

listSubscriptions($optParams = array()   X-Ref
Retrieves a list of subscriptions for the authenticated user and service.
(subscriptions.listSubscriptions)

param: array $optParams Optional parameters.
return: Google_Service_Mirror_SubscriptionsListResponse

update($id, Google_Service_Mirror_Subscription $postBody, $optParams = array()   X-Ref
Updates an existing subscription in place. (subscriptions.update)

param: string $id The ID of the subscription.
param: Google_Subscription $postBody
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Subscription

Class: Google_Service_Mirror_Timeline_Resource  - X-Ref

The "timeline" collection of methods.
Typical usage is:
<code>
$mirrorService = new Google_Service_Mirror(...);
$timeline = $mirrorService->timeline;
</code>

delete($id, $optParams = array()   X-Ref
Deletes a timeline item. (timeline.delete)

param: string $id The ID of the timeline item.
param: array $optParams Optional parameters.

get($id, $optParams = array()   X-Ref
Gets a single timeline item by ID. (timeline.get)

param: string $id The ID of the timeline item.
param: array $optParams Optional parameters.
return: Google_Service_Mirror_TimelineItem

insert(Google_Service_Mirror_TimelineItem $postBody, $optParams = array()   X-Ref
Inserts a new item into the timeline. (timeline.insert)

param: Google_TimelineItem $postBody
param: array $optParams Optional parameters.
return: Google_Service_Mirror_TimelineItem

listTimeline($optParams = array()   X-Ref
Retrieves a list of timeline items for the authenticated user.
(timeline.listTimeline)

param: array $optParams Optional parameters.
return: Google_Service_Mirror_TimelineListResponse

patch($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array()   X-Ref
Updates a timeline item in place. This method supports patch semantics.
(timeline.patch)

param: string $id The ID of the timeline item.
param: Google_TimelineItem $postBody
param: array $optParams Optional parameters.
return: Google_Service_Mirror_TimelineItem

update($id, Google_Service_Mirror_TimelineItem $postBody, $optParams = array()   X-Ref
Updates a timeline item in place. (timeline.update)

param: string $id The ID of the timeline item.
param: Google_TimelineItem $postBody
param: array $optParams Optional parameters.
return: Google_Service_Mirror_TimelineItem

Class: Google_Service_Mirror_TimelineAttachments_Resource  - X-Ref

The "attachments" collection of methods.
Typical usage is:
<code>
$mirrorService = new Google_Service_Mirror(...);
$attachments = $mirrorService->attachments;
</code>

delete($itemId, $attachmentId, $optParams = array()   X-Ref
Deletes an attachment from a timeline item. (attachments.delete)

param: string $itemId The ID of the timeline item the attachment belongs to.
param: string $attachmentId The ID of the attachment.
param: array $optParams Optional parameters.

get($itemId, $attachmentId, $optParams = array()   X-Ref
Retrieves an attachment on a timeline item by item ID and attachment ID.
(attachments.get)

param: string $itemId The ID of the timeline item the attachment belongs to.
param: string $attachmentId The ID of the attachment.
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Attachment

insert($itemId, $optParams = array()   X-Ref
Adds a new attachment to a timeline item. (attachments.insert)

param: string $itemId The ID of the timeline item the attachment belongs to.
param: array $optParams Optional parameters.
return: Google_Service_Mirror_Attachment

listTimelineAttachments($itemId, $optParams = array()   X-Ref
Returns a list of attachments for a timeline item.
(attachments.listTimelineAttachments)

param: string $itemId The ID of the timeline item whose attachments should be
param: array $optParams Optional parameters.
return: Google_Service_Mirror_AttachmentsListResponse

Class: Google_Service_Mirror_Account  - X-Ref

setAuthTokens($authTokens)   X-Ref
No description

getAuthTokens()   X-Ref
No description

setFeatures($features)   X-Ref
No description

getFeatures()   X-Ref
No description

setPassword($password)   X-Ref
No description

getPassword()   X-Ref
No description

setUserData($userData)   X-Ref
No description

getUserData()   X-Ref
No description

Class: Google_Service_Mirror_Attachment  - X-Ref

setContentType($contentType)   X-Ref
No description

getContentType()   X-Ref
No description

setContentUrl($contentUrl)   X-Ref
No description

getContentUrl()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setIsProcessingContent($isProcessingContent)   X-Ref
No description

getIsProcessingContent()   X-Ref
No description

Class: Google_Service_Mirror_AttachmentsListResponse  - X-Ref

setItems($items)   X-Ref
No description

getItems()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

Class: Google_Service_Mirror_AuthToken  - X-Ref

setAuthToken($authToken)   X-Ref
No description

getAuthToken()   X-Ref
No description

setType($type)   X-Ref
No description

getType()   X-Ref
No description

Class: Google_Service_Mirror_Command  - X-Ref

setType($type)   X-Ref
No description

getType()   X-Ref
No description

Class: Google_Service_Mirror_Contact  - X-Ref

setAcceptCommands($acceptCommands)   X-Ref
No description

getAcceptCommands()   X-Ref
No description

setAcceptTypes($acceptTypes)   X-Ref
No description

getAcceptTypes()   X-Ref
No description

setDisplayName($displayName)   X-Ref
No description

getDisplayName()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setImageUrls($imageUrls)   X-Ref
No description

getImageUrls()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setPhoneNumber($phoneNumber)   X-Ref
No description

getPhoneNumber()   X-Ref
No description

setPriority($priority)   X-Ref
No description

getPriority()   X-Ref
No description

setSharingFeatures($sharingFeatures)   X-Ref
No description

getSharingFeatures()   X-Ref
No description

setSource($source)   X-Ref
No description

getSource()   X-Ref
No description

setSpeakableName($speakableName)   X-Ref
No description

getSpeakableName()   X-Ref
No description

setType($type)   X-Ref
No description

getType()   X-Ref
No description

Class: Google_Service_Mirror_ContactsListResponse  - X-Ref

setItems($items)   X-Ref
No description

getItems()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

Class: Google_Service_Mirror_Location  - X-Ref

setAccuracy($accuracy)   X-Ref
No description

getAccuracy()   X-Ref
No description

setAddress($address)   X-Ref
No description

getAddress()   X-Ref
No description

setDisplayName($displayName)   X-Ref
No description

getDisplayName()   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

setLatitude($latitude)   X-Ref
No description

getLatitude()   X-Ref
No description

setLongitude($longitude)   X-Ref
No description

getLongitude()   X-Ref
No description

setTimestamp($timestamp)   X-Ref
No description

getTimestamp()   X-Ref
No description

Class: Google_Service_Mirror_LocationsListResponse  - X-Ref

setItems($items)   X-Ref
No description

getItems()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

Class: Google_Service_Mirror_MenuItem  - X-Ref

setAction($action)   X-Ref
No description

getAction()   X-Ref
No description

setContextualCommand($contextualCommand)   X-Ref
No description

getContextualCommand()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setPayload($payload)   X-Ref
No description

getPayload()   X-Ref
No description

setRemoveWhenSelected($removeWhenSelected)   X-Ref
No description

getRemoveWhenSelected()   X-Ref
No description

setValues($values)   X-Ref
No description

getValues()   X-Ref
No description

Class: Google_Service_Mirror_MenuValue  - X-Ref

setDisplayName($displayName)   X-Ref
No description

getDisplayName()   X-Ref
No description

setIconUrl($iconUrl)   X-Ref
No description

getIconUrl()   X-Ref
No description

setState($state)   X-Ref
No description

getState()   X-Ref
No description

Class: Google_Service_Mirror_Notification  - X-Ref

setCollection($collection)   X-Ref
No description

getCollection()   X-Ref
No description

setItemId($itemId)   X-Ref
No description

getItemId()   X-Ref
No description

setOperation($operation)   X-Ref
No description

getOperation()   X-Ref
No description

setUserActions($userActions)   X-Ref
No description

getUserActions()   X-Ref
No description

setUserToken($userToken)   X-Ref
No description

getUserToken()   X-Ref
No description

setVerifyToken($verifyToken)   X-Ref
No description

getVerifyToken()   X-Ref
No description

Class: Google_Service_Mirror_NotificationConfig  - X-Ref

setDeliveryTime($deliveryTime)   X-Ref
No description

getDeliveryTime()   X-Ref
No description

setLevel($level)   X-Ref
No description

getLevel()   X-Ref
No description

Class: Google_Service_Mirror_Setting  - X-Ref

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setValue($value)   X-Ref
No description

getValue()   X-Ref
No description

Class: Google_Service_Mirror_Subscription  - X-Ref

setCallbackUrl($callbackUrl)   X-Ref
No description

getCallbackUrl()   X-Ref
No description

setCollection($collection)   X-Ref
No description

getCollection()   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

setNotification(Google_Service_Mirror_Notification $notification)   X-Ref
No description

getNotification()   X-Ref
No description

setOperation($operation)   X-Ref
No description

getOperation()   X-Ref
No description

setUpdated($updated)   X-Ref
No description

getUpdated()   X-Ref
No description

setUserToken($userToken)   X-Ref
No description

getUserToken()   X-Ref
No description

setVerifyToken($verifyToken)   X-Ref
No description

getVerifyToken()   X-Ref
No description

Class: Google_Service_Mirror_SubscriptionsListResponse  - X-Ref

setItems($items)   X-Ref
No description

getItems()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

Class: Google_Service_Mirror_TimelineItem  - X-Ref

setAttachments($attachments)   X-Ref
No description

getAttachments()   X-Ref
No description

setBundleId($bundleId)   X-Ref
No description

getBundleId()   X-Ref
No description

setCanonicalUrl($canonicalUrl)   X-Ref
No description

getCanonicalUrl()   X-Ref
No description

setCreated($created)   X-Ref
No description

getCreated()   X-Ref
No description

setCreator(Google_Service_Mirror_Contact $creator)   X-Ref
No description

getCreator()   X-Ref
No description

setDisplayTime($displayTime)   X-Ref
No description

getDisplayTime()   X-Ref
No description

setEtag($etag)   X-Ref
No description

getEtag()   X-Ref
No description

setHtml($html)   X-Ref
No description

getHtml()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setInReplyTo($inReplyTo)   X-Ref
No description

getInReplyTo()   X-Ref
No description

setIsBundleCover($isBundleCover)   X-Ref
No description

getIsBundleCover()   X-Ref
No description

setIsDeleted($isDeleted)   X-Ref
No description

getIsDeleted()   X-Ref
No description

setIsPinned($isPinned)   X-Ref
No description

getIsPinned()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setLocation(Google_Service_Mirror_Location $location)   X-Ref
No description

getLocation()   X-Ref
No description

setMenuItems($menuItems)   X-Ref
No description

getMenuItems()   X-Ref
No description

setNotification(Google_Service_Mirror_NotificationConfig $notification)   X-Ref
No description

getNotification()   X-Ref
No description

setPinScore($pinScore)   X-Ref
No description

getPinScore()   X-Ref
No description

setRecipients($recipients)   X-Ref
No description

getRecipients()   X-Ref
No description

setSelfLink($selfLink)   X-Ref
No description

getSelfLink()   X-Ref
No description

setSourceItemId($sourceItemId)   X-Ref
No description

getSourceItemId()   X-Ref
No description

setSpeakableText($speakableText)   X-Ref
No description

getSpeakableText()   X-Ref
No description

setSpeakableType($speakableType)   X-Ref
No description

getSpeakableType()   X-Ref
No description

setText($text)   X-Ref
No description

getText()   X-Ref
No description

setTitle($title)   X-Ref
No description

getTitle()   X-Ref
No description

setUpdated($updated)   X-Ref
No description

getUpdated()   X-Ref
No description

Class: Google_Service_Mirror_TimelineListResponse  - 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_Mirror_UserAction  - X-Ref

setPayload($payload)   X-Ref
No description

getPayload()   X-Ref
No description

setType($type)   X-Ref
No description

getType()   X-Ref
No description

Class: Google_Service_Mirror_UserData  - X-Ref

setKey($key)   X-Ref
No description

getKey()   X-Ref
No description

setValue($value)   X-Ref
No description

getValue()   X-Ref
No description