コード例 #1
0
 /**
  * @param object|bool $plan
  */
 function __construct($plan = false)
 {
     parent::__construct($plan);
     if (is_object($plan)) {
         $this->name = strtolower($plan->name);
     }
 }
コード例 #2
0
 function __construct($tag = false)
 {
     if (!$tag instanceof stdClass) {
         return;
     }
     parent::__construct($tag);
     $this->version = $tag->version;
     $this->url = $tag->url;
 }
コード例 #3
0
 /**
  * @param bool|stdClass $scope_entity
  */
 function __construct($scope_entity = false)
 {
     if (!$scope_entity instanceof stdClass) {
         return;
     }
     parent::__construct($scope_entity);
     $this->public_key = $scope_entity->public_key;
     if (isset($scope_entity->secret_key)) {
         $this->secret_key = $scope_entity->secret_key;
     }
 }
コード例 #4
0
 /**
  * @param stdClass|bool $plan
  */
 function __construct($plan = false)
 {
     if (!$plan instanceof stdClass) {
         return;
     }
     parent::__construct($plan);
     $this->title = $plan->title;
     $this->name = strtolower($plan->name);
     $this->trial_period = $plan->trial_period;
     $this->is_require_subscription = $plan->is_require_subscription;
 }
コード例 #5
0
 /**
  * @param stdClass|bool $license
  */
 function __construct($license = false)
 {
     if (!$license instanceof stdClass) {
         return;
     }
     parent::__construct($license);
     $this->plan_id = $license->plan_id;
     $this->activated = $license->activated;
     $this->activated_local = $license->activated_local;
     $this->quota = $license->quota;
     $this->expiration = $license->expiration;
     $this->is_free_localhost = $license->is_free_localhost;
     $this->is_block_features = $license->is_block_features;
 }
コード例 #6
0
 /**
  * @param stdClass|bool $plugin_info
  */
 function __construct($plugin_info = false)
 {
     if (!$plugin_info instanceof stdClass) {
         return;
     }
     parent::__construct($plugin_info);
     $this->plugin_id = $plugin_info->plugin_id;
     $this->description = $plugin_info->description;
     $this->short_description = $plugin_info->short_description;
     $this->banner_url = $plugin_info->banner_url;
     $this->card_banner_url = $plugin_info->card_banner_url;
     $this->selling_point_0 = $plugin_info->selling_point_0;
     $this->selling_point_1 = $plugin_info->selling_point_1;
     $this->selling_point_2 = $plugin_info->selling_point_2;
     $this->screenshots = $plugin_info->screenshots;
 }
コード例 #7
0
 /**
  * @param stdClass|bool $subscription
  */
 function __construct($subscription = false)
 {
     if (!$subscription instanceof stdClass) {
         return;
     }
     parent::__construct($subscription);
     $this->user_id = $subscription->user_id;
     $this->install_id = $subscription->install_id;
     $this->plan_id = $subscription->plan_id;
     $this->license_id = $subscription->license_id;
     $this->amount_per_cycle = $subscription->amount_per_cycle;
     $this->billing_cycle = $subscription->billing_cycle;
     $this->outstanding_balance = $subscription->outstanding_balance;
     $this->failed_payments = $subscription->failed_payments;
     $this->gateway = $subscription->gateway;
     $this->trial_ends = $subscription->trial_ends;
     $this->next_payment = $subscription->next_payment;
     $this->vat_id = $subscription->vat_id;
     $this->country_code = $subscription->country_code;
 }
コード例 #8
0
 /**
  * @param stdClass|bool $license
  */
 function __construct($license = false)
 {
     parent::__construct($license);
 }
コード例 #9
0
 /**
  * @param object|bool $pricing
  */
 function __construct($pricing = false)
 {
     parent::__construct($pricing);
 }
コード例 #10
0
 /**
  * @param object|bool $subscription
  */
 function __construct($subscription = false)
 {
     parent::__construct($subscription);
 }
コード例 #11
0
 /**
  * @param stdClass|bool $plugin_info
  */
 function __construct($plugin_info = false)
 {
     parent::__construct($plugin_info);
 }
コード例 #12
0
 function __construct($tag = false)
 {
     parent::__construct($tag);
 }
コード例 #13
0
 /**
  * @param object|bool $payment
  */
 function __construct($payment = false)
 {
     parent::__construct($payment);
 }
コード例 #14
0
 /**
  * @param bool|stdClass $scope_entity
  */
 function __construct($scope_entity = false)
 {
     parent::__construct($scope_entity);
 }