You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
747 B
25 lines
747 B
<?php if ( !defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
use app\core\auth\Registration as UserRegistration;
|
|
use app\core\auth\Subscription as UserSubscription;
|
|
class Subscription extends MY_Controller {
|
|
|
|
public function __construct()
|
|
{
|
|
$this->frontoffice_parent_controller();
|
|
$this->setCspHeader(true);
|
|
$this->load->model('User_registration_model');
|
|
|
|
// $this->registration = new UserRegistration();
|
|
// $this->subscription = new UserSubscription();
|
|
}
|
|
/**
|
|
* Set all expired subscription status to EXPIRED
|
|
* Run on CRON
|
|
*/
|
|
public function end_of_membership() {
|
|
$this->User_registration_model->updateSubscriptionStatus('ACTIVE');
|
|
}
|
|
|
|
|
|
}
|