Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Google_Service_CivicInfo_Elections_Resource Class Reference

The "elections" collection of methods. More...

Inheritance diagram for Google_Service_CivicInfo_Elections_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 electionQuery ($optParams=array())
 List of available elections to query.
 
 voterInfoQuery ($address, $optParams=array())
 Looks up information relevant to a voter based on the voter's registered address.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "elections" collection of methods.

Typical usage is: $civicinfoService = new Google_Service_CivicInfo(...); $elections = $civicinfoService->elections;

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

◆ electionQuery()

Google_Service_CivicInfo_Elections_Resource::electionQuery ( $optParams = array())

List of available elections to query.

(elections.electionQuery)

Parameters
array$optParamsOptional parameters.
Return values
Google_Service_CivicInfo_ElectionsQueryResponse

◆ voterInfoQuery()

Google_Service_CivicInfo_Elections_Resource::voterInfoQuery ( $address,
$optParams = array() )

Looks up information relevant to a voter based on the voter's registered address.

(elections.voterInfoQuery)

Parameters
string$addressThe registered address of the voter to look up.
array$optParamsOptional parameters.

@opt_param string electionId The unique ID of the election to look up. A list of election IDs can be obtained at https://www.googleapis.com/civicinfo/{version}/elections @opt_param bool officialOnly If set to true, only data from official state sources will be returned.

Return values
Google_Service_CivicInfo_VoterInfoResponse

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