🔥 remove remaining legacy saas code
This commit is contained in:
parent
e232469551
commit
0f5cb8b1f8
123 changed files with 10 additions and 10171 deletions
|
@ -1,8 +0,0 @@
|
|||
<?php
|
||||
|
||||
class Airtime_View_Helper_IsTrial extends Zend_View_Helper_Abstract{
|
||||
public function isTrial(){
|
||||
$plan = Application_Model_Preference::GetPlanLevel();
|
||||
return $plan == 'trial';
|
||||
}
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
<?php
|
||||
|
||||
class Airtime_View_Helper_TrialRemaining extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function trialRemaining()
|
||||
{
|
||||
$ending_date = Application_Model_Preference::GetTrialEndingDate();
|
||||
if ($ending_date == '') {
|
||||
return '';
|
||||
}
|
||||
$datetime1 = new DateTime();
|
||||
$datetime2 = new DateTime($ending_date);
|
||||
$interval = $datetime1->diff($datetime2);
|
||||
if($interval->format('%R') == '-'){
|
||||
return "Trial expired.";
|
||||
}
|
||||
return $interval->format('%a');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue