Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\WebService\TranslationQuery Class Reference

Mutable objects that represents an HTTP(S) query. More...

Public Member Functions

 postWithData (string $data)
 Make this a POST request with given data.
 
 queryParameters (array $params)
 
 queryHeaders (array $headers)
 
 timeout (float $timeout)
 
 attachProcessingInstructions ( $data)
 Attach arbitrary data that is necessary to process the results.
 
 getTimeout ()
 
 getUrl ()
 
 getMethod ()
 
 getQueryParameters ()
 
 getBody ()
 
 getHeaders ()
 
 getProcessingInstructions ()
 Get previously attached result processing instructions.
 

Static Public Member Functions

static factory (string $url)
 

Detailed Description

Mutable objects that represents an HTTP(S) query.

NB: Too lazy to make TranslationQueryFactory to make this class immutable.

Author
Niklas Laxström @license GPL-2.0-or-later
Since
2015.02

Definition at line 13 of file TranslationQuery.php.

Member Function Documentation

◆ attachProcessingInstructions()

MediaWiki\Extension\Translate\WebService\TranslationQuery::attachProcessingInstructions ( $data)

Attach arbitrary data that is necessary to process the results.

Parameters
mixed$data
Since
2017.04

Definition at line 56 of file TranslationQuery.php.

◆ factory()

static MediaWiki\Extension\Translate\WebService\TranslationQuery::factory ( string $url)
static

Definition at line 23 of file TranslationQuery.php.

◆ getBody()

MediaWiki\Extension\Translate\WebService\TranslationQuery::getBody ( )

Definition at line 77 of file TranslationQuery.php.

◆ getHeaders()

MediaWiki\Extension\Translate\WebService\TranslationQuery::getHeaders ( )

Definition at line 81 of file TranslationQuery.php.

◆ getMethod()

MediaWiki\Extension\Translate\WebService\TranslationQuery::getMethod ( )

Definition at line 69 of file TranslationQuery.php.

◆ getProcessingInstructions()

MediaWiki\Extension\Translate\WebService\TranslationQuery::getProcessingInstructions ( )

Get previously attached result processing instructions.

Returns
mixed
Since
2017.04

Definition at line 90 of file TranslationQuery.php.

◆ getQueryParameters()

MediaWiki\Extension\Translate\WebService\TranslationQuery::getQueryParameters ( )

Definition at line 73 of file TranslationQuery.php.

◆ getTimeout()

MediaWiki\Extension\Translate\WebService\TranslationQuery::getTimeout ( )

Definition at line 61 of file TranslationQuery.php.

◆ getUrl()

MediaWiki\Extension\Translate\WebService\TranslationQuery::getUrl ( )

Definition at line 65 of file TranslationQuery.php.

◆ postWithData()

MediaWiki\Extension\Translate\WebService\TranslationQuery::postWithData ( string $data)

Make this a POST request with given data.

Definition at line 30 of file TranslationQuery.php.

◆ queryHeaders()

MediaWiki\Extension\Translate\WebService\TranslationQuery::queryHeaders ( array $headers)

Definition at line 41 of file TranslationQuery.php.

◆ queryParameters()

MediaWiki\Extension\Translate\WebService\TranslationQuery::queryParameters ( array $params)

Definition at line 36 of file TranslationQuery.php.

◆ timeout()

MediaWiki\Extension\Translate\WebService\TranslationQuery::timeout ( float $timeout)

Definition at line 46 of file TranslationQuery.php.


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