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

Defines 18 classes

Google_Service_Pagespeedonline:: (1 method):
  __construct()

Google_Service_Pagespeedonline_Pagespeedapi_Resource:: (1 method):
  runpagespeed()

Google_Service_Pagespeedonline_PagespeedApiFormatStringV2:: (4 methods):
  setArgs()
  getArgs()
  setFormat()
  getFormat()

Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args:: (10 methods):
  setKey()
  getKey()
  setRects()
  getRects()
  setSecondaryRects()
  getSecondaryRects()
  setType()
  getType()
  setValue()
  getValue()

Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects:: (8 methods):
  setHeight()
  getHeight()
  setLeft()
  getLeft()
  setTop()
  getTop()
  setWidth()
  getWidth()

Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects:: (8 methods):
  setHeight()
  getHeight()
  setLeft()
  getLeft()
  setTop()
  getTop()
  setWidth()
  getWidth()

Google_Service_Pagespeedonline_PagespeedApiImageV2:: (12 methods):
  setData()
  getData()
  setHeight()
  getHeight()
  setKey()
  getKey()
  setMimeType()
  getMimeType()
  setPageRect()
  getPageRect()
  setWidth()
  getWidth()

Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect:: (8 methods):
  setHeight()
  getHeight()
  setLeft()
  getLeft()
  setTop()
  getTop()
  setWidth()
  getWidth()

Google_Service_Pagespeedonline_Result:: (20 methods):
  setFormattedResults()
  getFormattedResults()
  setId()
  getId()
  setInvalidRules()
  getInvalidRules()
  setKind()
  getKind()
  setPageStats()
  getPageStats()
  setResponseCode()
  getResponseCode()
  setRuleGroups()
  getRuleGroups()
  setScreenshot()
  getScreenshot()
  setTitle()
  getTitle()
  setVersion()
  getVersion()

Google_Service_Pagespeedonline_ResultFormattedResults:: (4 methods):
  setLocale()
  getLocale()
  setRuleResults()
  getRuleResults()

Google_Service_Pagespeedonline_ResultFormattedResultsRuleResults:: (0 methods):

Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement:: (10 methods):
  setGroups()
  getGroups()
  setLocalizedRuleName()
  getLocalizedRuleName()
  setRuleImpact()
  getRuleImpact()
  setSummary()
  getSummary()
  setUrlBlocks()
  getUrlBlocks()

Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks:: (4 methods):
  setHeader()
  getHeader()
  setUrls()
  getUrls()

Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls:: (4 methods):
  setDetails()
  getDetails()
  setResult()
  getResult()

Google_Service_Pagespeedonline_ResultPageStats:: (26 methods):
  setCssResponseBytes()
  getCssResponseBytes()
  setFlashResponseBytes()
  getFlashResponseBytes()
  setHtmlResponseBytes()
  getHtmlResponseBytes()
  setImageResponseBytes()
  getImageResponseBytes()
  setJavascriptResponseBytes()
  getJavascriptResponseBytes()
  setNumberCssResources()
  getNumberCssResources()
  setNumberHosts()
  getNumberHosts()
  setNumberJsResources()
  getNumberJsResources()
  setNumberResources()
  getNumberResources()
  setNumberStaticResources()
  getNumberStaticResources()
  setOtherResponseBytes()
  getOtherResponseBytes()
  setTextResponseBytes()
  getTextResponseBytes()
  setTotalRequestBytes()
  getTotalRequestBytes()

Google_Service_Pagespeedonline_ResultRuleGroups:: (0 methods):

Google_Service_Pagespeedonline_ResultRuleGroupsElement:: (2 methods):
  setScore()
  getScore()

Google_Service_Pagespeedonline_ResultVersion:: (4 methods):
  setMajor()
  getMajor()
  setMinor()
  getMinor()


Class: Google_Service_Pagespeedonline  - X-Ref

Service definition for Pagespeedonline (v2).

<p>
Lets you analyze the performance of a web page and get tailored suggestions
to make that page faster.</p>

<p>
For more information about this service, see the API
<a href="https://developers.google.com/speed/docs/insights/v2/getting-started" target="_blank">Documentation</a>
</p>

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

param: Google_Client $client

Class: Google_Service_Pagespeedonline_Pagespeedapi_Resource  - X-Ref

The "pagespeedapi" collection of methods.
Typical usage is:
<code>
$pagespeedonlineService = new Google_Service_Pagespeedonline(...);
$pagespeedapi = $pagespeedonlineService->pagespeedapi;
</code>

runpagespeed($url, $optParams = array()   X-Ref
Runs PageSpeed analysis on the page at the specified URL, and returns
PageSpeed scores, a list of suggestions to make that page faster, and other
information. (pagespeedapi.runpagespeed)

param: string $url The URL to fetch and analyze
param: array $optParams Optional parameters.
return: Google_Service_Pagespeedonline_Result

Class: Google_Service_Pagespeedonline_PagespeedApiFormatStringV2  - X-Ref

setArgs($args)   X-Ref
No description

getArgs()   X-Ref
No description

setFormat($format)   X-Ref
No description

getFormat()   X-Ref
No description

Class: Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args  - X-Ref

setKey($key)   X-Ref
No description

getKey()   X-Ref
No description

setRects($rects)   X-Ref
No description

getRects()   X-Ref
No description

setSecondaryRects($secondaryRects)   X-Ref
No description

getSecondaryRects()   X-Ref
No description

setType($type)   X-Ref
No description

getType()   X-Ref
No description

setValue($value)   X-Ref
No description

getValue()   X-Ref
No description

Class: Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects  - X-Ref

setHeight($height)   X-Ref
No description

getHeight()   X-Ref
No description

setLeft($left)   X-Ref
No description

getLeft()   X-Ref
No description

setTop($top)   X-Ref
No description

getTop()   X-Ref
No description

setWidth($width)   X-Ref
No description

getWidth()   X-Ref
No description

Class: Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects  - X-Ref

setHeight($height)   X-Ref
No description

getHeight()   X-Ref
No description

setLeft($left)   X-Ref
No description

getLeft()   X-Ref
No description

setTop($top)   X-Ref
No description

getTop()   X-Ref
No description

setWidth($width)   X-Ref
No description

getWidth()   X-Ref
No description

Class: Google_Service_Pagespeedonline_PagespeedApiImageV2  - X-Ref

setData($data)   X-Ref
No description

getData()   X-Ref
No description

setHeight($height)   X-Ref
No description

getHeight()   X-Ref
No description

setKey($key)   X-Ref
No description

getKey()   X-Ref
No description

setMimeType($mimeType)   X-Ref
No description

getMimeType()   X-Ref
No description

setPageRect(Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect $pageRect)   X-Ref
No description

getPageRect()   X-Ref
No description

setWidth($width)   X-Ref
No description

getWidth()   X-Ref
No description

Class: Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect  - X-Ref

setHeight($height)   X-Ref
No description

getHeight()   X-Ref
No description

setLeft($left)   X-Ref
No description

getLeft()   X-Ref
No description

setTop($top)   X-Ref
No description

getTop()   X-Ref
No description

setWidth($width)   X-Ref
No description

getWidth()   X-Ref
No description

Class: Google_Service_Pagespeedonline_Result  - X-Ref

setFormattedResults(Google_Service_Pagespeedonline_ResultFormattedResults $formattedResults)   X-Ref
No description

getFormattedResults()   X-Ref
No description

setId($id)   X-Ref
No description

getId()   X-Ref
No description

setInvalidRules($invalidRules)   X-Ref
No description

getInvalidRules()   X-Ref
No description

setKind($kind)   X-Ref
No description

getKind()   X-Ref
No description

setPageStats(Google_Service_Pagespeedonline_ResultPageStats $pageStats)   X-Ref
No description

getPageStats()   X-Ref
No description

setResponseCode($responseCode)   X-Ref
No description

getResponseCode()   X-Ref
No description

setRuleGroups($ruleGroups)   X-Ref
No description

getRuleGroups()   X-Ref
No description

setScreenshot(Google_Service_Pagespeedonline_PagespeedApiImageV2 $screenshot)   X-Ref
No description

getScreenshot()   X-Ref
No description

setTitle($title)   X-Ref
No description

getTitle()   X-Ref
No description

setVersion(Google_Service_Pagespeedonline_ResultVersion $version)   X-Ref
No description

getVersion()   X-Ref
No description

Class: Google_Service_Pagespeedonline_ResultFormattedResults  - X-Ref

setLocale($locale)   X-Ref
No description

getLocale()   X-Ref
No description

setRuleResults($ruleResults)   X-Ref
No description

getRuleResults()   X-Ref
No description

Class: Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement  - X-Ref

setGroups($groups)   X-Ref
No description

getGroups()   X-Ref
No description

setLocalizedRuleName($localizedRuleName)   X-Ref
No description

getLocalizedRuleName()   X-Ref
No description

setRuleImpact($ruleImpact)   X-Ref
No description

getRuleImpact()   X-Ref
No description

setSummary(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $summary)   X-Ref
No description

getSummary()   X-Ref
No description

setUrlBlocks($urlBlocks)   X-Ref
No description

getUrlBlocks()   X-Ref
No description

Class: Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks  - X-Ref

setHeader(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $header)   X-Ref
No description

getHeader()   X-Ref
No description

setUrls($urls)   X-Ref
No description

getUrls()   X-Ref
No description

Class: Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls  - X-Ref

setDetails($details)   X-Ref
No description

getDetails()   X-Ref
No description

setResult(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $result)   X-Ref
No description

getResult()   X-Ref
No description

Class: Google_Service_Pagespeedonline_ResultPageStats  - X-Ref

Class: Google_Service_Pagespeedonline_ResultRuleGroupsElement  - X-Ref

setScore($score)   X-Ref
No description

getScore()   X-Ref
No description

Class: Google_Service_Pagespeedonline_ResultVersion  - X-Ref

setMajor($major)   X-Ref
No description

getMajor()   X-Ref
No description

setMinor($minor)   X-Ref
No description

getMinor()   X-Ref
No description