You are here

class UploadContextParameters in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.2 api-sdk-php/src/Context/Params/UploadContextParameters.php \Smartling\Context\Params\UploadContextParameters
  2. 8.2 vendor/smartling/api-sdk-php/src/Context/Params/UploadContextParameters.php \Smartling\Context\Params\UploadContextParameters
  3. 8.3 vendor/smartling/api-sdk-php/src/Context/Params/UploadContextParameters.php \Smartling\Context\Params\UploadContextParameters

Class UploadContextParameters @package Context\Params

Hierarchy

Expanded class hierarchy of UploadContextParameters

5 files declare their use of UploadContextParameters
context-example.php in vendor/smartling/api-sdk-php/examples/context-example.php
ContextApi.php in vendor/smartling/api-sdk-php/src/Context/ContextApi.php
ContextApiFunctionalTest.php in vendor/smartling/api-sdk-php/tests/functional/ContextApiFunctionalTest.php
ContextApiTest.php in vendor/smartling/api-sdk-php/tests/unit/ContextApiTest.php
ContextUploader.php in src/Context/ContextUploader.php

File

vendor/smartling/api-sdk-php/src/Context/Params/UploadContextParameters.php, line 11

Namespace

Smartling\Context\Params
View source
class UploadContextParameters extends BaseParameters {

  /**
   * @param $contextFileUri
   *
   * @deprecated since version 3.5.0, to be removed in 4.0.0.
   * Use UploadContextParameters::setContent() instead.
   */
  public function setContextFileUri($contextFileUri) {
    $this
      ->set('content', $contextFileUri);
  }
  public function setContent($contextFileUri) {
    $this
      ->set('content', $contextFileUri);
  }
  public function setName($name) {
    $this
      ->set('name', $name);
  }
  public function setMatchParams(MatchContextParameters $params) {
    $this
      ->set('matchParams', json_encode($params
      ->exportToArray()));
  }

}

Members