You are here

public function UploadFileParameters::setLocalesToApprove in TMGMT Translator Smartling 8.2

Same name in this branch
  1. 8.2 api-sdk-php/src/File/Params/UploadFileParameters.php \Smartling\File\Params\UploadFileParameters::setLocalesToApprove()
  2. 8.2 vendor/smartling/api-sdk-php/src/File/Params/UploadFileParameters.php \Smartling\File\Params\UploadFileParameters::setLocalesToApprove()
Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/File/Params/UploadFileParameters.php \Smartling\File\Params\UploadFileParameters::setLocalesToApprove()
  2. 8.3 vendor/smartling/api-sdk-php/src/File/Params/UploadFileParameters.php \Smartling\File\Params\UploadFileParameters::setLocalesToApprove()

Parameters

array $locales_to_approve:

Return value

UploadFileParameters

File

vendor/smartling/api-sdk-php/src/File/Params/UploadFileParameters.php, line 76

Class

UploadFileParameters
Class UploadFileParameters

Namespace

Smartling\File\Params

Code

public function setLocalesToApprove($locales_to_approve) {
  if (is_string($locales_to_approve)) {
    $locales_to_approve = [
      $locales_to_approve,
    ];
  }
  $this
    ->set('localeIdsToAuthorize', $locales_to_approve);
  return $this;
}