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

Mutable objects that represents a 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 (int $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 a 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 57 of file TranslationQuery.php.

◆ factory()

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

Definition at line 24 of file TranslationQuery.php.

◆ getBody()

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

Definition at line 78 of file TranslationQuery.php.

◆ getHeaders()

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

Definition at line 82 of file TranslationQuery.php.

◆ getMethod()

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

Definition at line 70 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 91 of file TranslationQuery.php.

◆ getQueryParameters()

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

Definition at line 74 of file TranslationQuery.php.

◆ getTimeout()

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

Definition at line 62 of file TranslationQuery.php.

◆ getUrl()

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

Definition at line 66 of file TranslationQuery.php.

◆ postWithData()

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

Make this a POST request with given data.

Definition at line 31 of file TranslationQuery.php.

◆ queryHeaders()

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

Definition at line 42 of file TranslationQuery.php.

◆ queryParameters()

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

Definition at line 37 of file TranslationQuery.php.

◆ timeout()

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

Definition at line 47 of file TranslationQuery.php.


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