\MicrosoftTranslator

MicrosoftTranslator.class.php

Summary

Methods
Properties
Constants
__construct()
translate()
No public properties found
STR_WSDL_URL
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

STR_WSDL_URL

STR_WSDL_URL

The WSDL URL

Methods

__construct()

__construct(\AzureMarketplaceAuthenticator  $obj_auth) 

Constructor - requires an instance of AzureMarketplaceAuthenticator, prepares a SoapClient with the client credentials

Parameters

\AzureMarketplaceAuthenticator $obj_auth

translate()

translate(string  $str_source_text = NULL, string  $str_source_language = NULL, string  $str_target_language = NULL) : string

Performs a translation request, returns the translated text

Parameters

string $str_source_text
string $str_source_language
string $str_target_language

Throws

\Exception

Returns

string