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: 196 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ResourceLinkShareKey:: (7 methods):
  __construct()
  initialize()
  initialise()
  save()
  delete()
  getId()
  load()


Class: ResourceLinkShareKey  - X-Ref

Class to represent a tool consumer resource link share key

__construct($resourceLink, $id = null)   X-Ref
Class constructor.

param: ResourceLink $resourceLink  Resource_Link object
param: string       $id      Value of share key (optional, default is null)

initialize()   X-Ref
Initialise the resource link share key.


initialise()   X-Ref
Initialise the resource link share key.

Pseudonym for initialize().

save()   X-Ref
Save the resource link share key to the database.

return: boolean True if the share key was successfully saved

delete()   X-Ref
Delete the resource link share key from the database.

return: boolean True if the share key was successfully deleted

getId()   X-Ref
Get share key value.

return: string Share key value

load()   X-Ref
Load the resource link share key from the database.