You are here

public function LingotekApi::markPhaseComplete in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::markPhaseComplete()
  2. 7.2 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::markPhaseComplete()
  3. 7.3 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::markPhaseComplete()
  4. 7.4 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::markPhaseComplete()
  5. 7.5 lib/Drupal/lingotek/LingotekApi.php \LingotekApi::markPhaseComplete()

Marks a phase as complete.

Parameters

int $phase_id: The phase ID to be marked as complete.

Return value

bool TRUE on success, FALSE on failure.

File

lib/Drupal/lingotek/LingotekApi.php, line 822
Defines Drupal\lingotek\LingotekApi

Class

LingotekApi
@file Defines Drupal\lingotek\LingotekApi

Code

public function markPhaseComplete($phase_id) {
  $parameters = array(
    'phaseId' => $phase_id,
  );
  return $this
    ->request('markPhaseComplete', $parameters) ? TRUE : FALSE;
}