You are here

public function LingotekAccount::getPlanTypeText in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.3 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getPlanTypeText()
  2. 7.4 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getPlanTypeText()
  3. 7.5 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getPlanTypeText()
  4. 7.6 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getPlanTypeText()

File

lib/Drupal/lingotek/LingotekAccount.php, line 107
Defines LingotekAccount.

Class

LingotekAccount
A class representing a Lingotek Account

Code

public function getPlanTypeText() {
  $plan_pieces = explode('_', $this
    ->getPlanType());
  $details = ucwords(end($plan_pieces));

  // e.g., Enterprise, Monthly, Yearly
  return $details;
}