Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_Translate_Translations_Resource Class Reference

The "translations" collection of methods. More...

Inheritance diagram for Google_Service_Translate_Translations_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 listTranslations ($q, $target, $optParams=array())
 Returns text translations from one language to another.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "translations" collection of methods.

Typical usage is: $translateService = new Google_Service_Translate(...); $translations = $translateService->translations;

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

◆ listTranslations()

Google_Service_Translate_Translations_Resource::listTranslations ( $q,
$target,
$optParams = array() )

Returns text translations from one language to another.

(translations.listTranslations)

Parameters
string$qThe text to translate
string$targetThe target language into which the text should be translated
array$optParamsOptional parameters.

@opt_param string source The source language of the text @opt_param string format The format of the text @opt_param string cid The customization id for translate

Return values
Google_Service_Translate_TranslationsListResponse

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