Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
Google_Service_Pagespeedonline_Pagespeedapi_Resource Class Reference

The "pagespeedapi" collection of methods. More...

Inheritance diagram for Google_Service_Pagespeedonline_Pagespeedapi_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 runpagespeed ($url, $optParams=array())
 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.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "pagespeedapi" collection of methods.

Typical usage is: $pagespeedonlineService = new Google_Service_Pagespeedonline(...); $pagespeedapi = $pagespeedonlineService->pagespeedapi;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ runpagespeed()

Google_Service_Pagespeedonline_Pagespeedapi_Resource::runpagespeed ( $url,
$optParams = array() )

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)

Parameters
string$urlThe URL to fetch and analyze
array$optParamsOptional parameters.

@opt_param bool screenshot Indicates if binary data containing a screenshot should be included @opt_param string locale The locale used to localize formatted results @opt_param string rule A PageSpeed rule to run; if none are given, all rules are run @opt_param string strategy The analysis strategy to use @opt_param bool filter_third_party_resources Indicates if third party resources should be filtered out before PageSpeed analysis.

Return values
Google_Service_Pagespeedonline_Result

The documentation for this class was generated from the following file: