public function LingotekAccount::setPlanType in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::setPlanType()
- 7.3 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::setPlanType()
- 7.5 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::setPlanType()
- 7.6 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::setPlanType()
2 calls to LingotekAccount::setPlanType()
- LingotekAccount::setPlan in lib/
Drupal/ lingotek/ LingotekAccount.php - LingotekAccount::__construct in lib/
Drupal/ lingotek/ LingotekAccount.php - Constructor.
File
- lib/
Drupal/ lingotek/ LingotekAccount.php, line 94 - Defines LingotekAccount.
Class
- LingotekAccount
- A class representing a Lingotek Account
Code
public function setPlanType($type = 'unknown') {
variable_set('lingotek_account_plan_type', $type);
$standard_types = array(
'cosmopolitan_monthly',
'cosmopolitan_yearly',
);
// if in this list, then set to 'standard'
$type = in_array($type, $standard_types) ? 'standard' : $type;
$this->planType = $type;
}