PluginProbe
Passster – Password Protect Pages and Content / 4.3.17
Passster – Password Protect Pages and Content v4.3.17
4.3.17 4.3.16 4.3.15 4.3.14 4.3.12 4.3.13 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 trunk 3.5.4 3.5.5.2 3.5.5.8 3.5.5.9 4.0 4.1.4 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 All 49 releases
← All changes | inc/freemius/includes/entities/class-fs-plugin-plan.php +156 -156 4.2.13 → 4.3.17 View file →
@@ -1,157 +1,157 @@
1 -<?php
2 - /**
3 - * @package Freemius
4 - * @copyright Copyright (c) 2015, Freemius, Inc.
5 - * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 - * @since 1.0.5
7 - */
8 -
9 - if ( ! defined( 'ABSPATH' ) ) {
10 - exit;
11 - }
12 -
13 - /**
14 - * Class FS_Plugin_Plan
15 - *
16 - * @property FS_Pricing[] $pricing
17 - */
18 - class FS_Plugin_Plan extends FS_Entity {
19 -
20 - #region Properties
21 -
22 - /**
23 - * @var number
24 - */
25 - public $plugin_id;
26 - /**
27 - * @var string
28 - */
29 - public $name;
30 - /**
31 - * @var string
32 - */
33 - public $title;
34 - /**
35 - * @var string
36 - */
37 - public $description;
38 - /**
39 - * @var bool Defaults to true. If true, allow unlimited localhost installs with the same license.
40 - */
41 - public $is_free_localhost;
42 - /**
43 - * @var bool Defaults to true. If false, don't block features after license expiry - only block updates and
44 - * support.
45 - */
46 - public $is_block_features;
47 - /**
48 - * @var int
49 - */
50 - public $license_type;
51 - /**
52 - * @var bool
53 - */
54 - public $is_https_support;
55 - /**
56 - * @var int Trial days.
57 - */
58 - public $trial_period;
59 - /**
60 - * @var string If true, require payment for trial.
61 - */
62 - public $is_require_subscription;
63 - /**
64 - * @var string Knowledge Base URL.
65 - */
66 - public $support_kb;
67 - /**
68 - * @var string Support Forum URL.
69 - */
70 - public $support_forum;
71 - /**
72 - * @var string Support email address.
73 - */
74 - public $support_email;
75 - /**
76 - * @var string Support phone.
77 - */
78 - public $support_phone;
79 - /**
80 - * @var string Support skype username.
81 - */
82 - public $support_skype;
83 - /**
84 - * @var bool Is personal success manager supported with the plan.
85 - */
86 - public $is_success_manager;
87 - /**
88 - * @var bool Is featured plan.
89 - */
90 - public $is_featured;
91 - /**
92 - * @var bool Is hidden plan.
93 - */
94 - public $is_hidden;
95 - /**
96 - * @var FS_Pricing[]
97 - */
98 - public $pricing;
99 - /**
100 - * @var object[]
101 - */
102 - public $features;
103 -
104 - #endregion Properties
105 -
106 - /**
107 - * @param object|bool $plan
108 - */
109 - function __construct( $plan = false ) {
110 - parent::__construct( $plan );
111 -
112 - if ( is_object( $plan ) ) {
113 - $this->name = strtolower( $plan->name );
114 - }
115 - }
116 -
117 - static function get_type() {
118 - return 'plan';
119 - }
120 -
121 - /**
122 - * @author Vova Feldman (@svovaf)
123 - * @since 1.0.9
124 - *
125 - * @return bool
126 - */
127 - function is_free() {
128 - return ( 'free' === $this->name );
129 - }
130 -
131 - /**
132 - * Checks if this plan supports "Technical Support".
133 - *
134 - * @author Leo Fajardo (leorw)
135 - * @since 1.2.0
136 - *
137 - * @return bool
138 - */
139 - function has_technical_support() {
140 - return ( ! empty( $this->support_email ) ||
141 - ! empty( $this->support_skype ) ||
142 - ! empty( $this->support_phone ) ||
143 - ! empty( $this->is_success_manager )
144 - );
145 - }
146 -
147 - /**
148 - * @author Vova Feldman (@svovaf)
149 - * @since 1.0.9
150 - *
151 - * @return bool
152 - */
153 - function has_trial() {
154 - return ! $this->is_free() &&
155 - is_numeric( $this->trial_period ) && ( $this->trial_period > 0 );
156 - }
1 +<?php
2 + /**
3 + * @package Freemius
4 + * @copyright Copyright (c) 2015, Freemius, Inc.
5 + * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 + * @since 1.0.5
7 + */
8 +
9 + if ( ! defined( 'ABSPATH' ) ) {
10 + exit;
11 + }
12 +
13 + /**
14 + * Class FS_Plugin_Plan
15 + *
16 + */
17 + class FS_Plugin_Plan extends FS_Entity {
18 +
19 + #region Properties
20 +
21 + /**
22 + * @var number
23 + */
24 + public $plugin_id;
25 + /**
26 + * @var string
27 + */
28 + public $name;
29 + /**
30 + * @var string
31 + */
32 + public $title;
33 + /**
34 + * @var string
35 + */
36 + public $description;
37 + /**
38 + * @var bool Defaults to true. If true, allow unlimited localhost installs with the same license.
39 + */
40 + public $is_free_localhost;
41 + /**
42 + * @var bool Defaults to true. If false, don't block features after license expiry - only block updates and
43 + * support.
44 + */
45 + public $is_block_features;
46 + /**
47 + * @var int
48 + */
49 + public $license_type;
50 + /**
51 + * @var bool
52 + */
53 + public $is_https_support;
54 + /**
55 + * @var int Trial days.
56 + */
57 + public $trial_period;
58 + /**
59 + * @var string If true, require payment for trial.
60 + */
61 + public $is_require_subscription;
62 + /**
63 + * @var string Knowledge Base URL.
64 + */
65 + public $support_kb;
66 + /**
67 + * @var string Support Forum URL.
68 + */
69 + public $support_forum;
70 + /**
71 + * @var string Support email address.
72 + */
73 + public $support_email;
74 + /**
75 + * @var string Support phone.
76 + */
77 + public $support_phone;
78 + /**
79 + * @var string Support skype username.
80 + *
81 + * @deprecated 2.12.1
82 + */
83 + public $support_skype = '';
84 + /**
85 + * @var bool Is personal success manager supported with the plan.
86 + */
87 + public $is_success_manager;
88 + /**
89 + * @var bool Is featured plan.
90 + */
91 + public $is_featured;
92 + /**
93 + * @var bool Is hidden plan.
94 + */
95 + public $is_hidden;
96 + /**
97 + * @var FS_Pricing[]
98 + */
99 + public $pricing;
100 + /**
101 + * @var object[]
102 + */
103 + public $features;
104 +
105 + #endregion Properties
106 +
107 + /**
108 + * @param object|bool $plan
109 + */
110 + function __construct( $plan = false ) {
111 + parent::__construct( $plan );
112 +
113 + if ( is_object( $plan ) ) {
114 + $this->name = strtolower( $plan->name );
115 + }
116 + }
117 +
118 + static function get_type() {
119 + return 'plan';
120 + }
121 +
122 + /**
123 + * @author Vova Feldman (@svovaf)
124 + * @since 1.0.9
125 + *
126 + * @return bool
127 + */
128 + function is_free() {
129 + return ( 'free' === $this->name );
130 + }
131 +
132 + /**
133 + * Checks if this plan supports "Technical Support".
134 + *
135 + * @author Leo Fajardo (leorw)
136 + * @since 1.2.0
137 + *
138 + * @return bool
139 + */
140 + function has_technical_support() {
141 + return ( ! empty( $this->support_email ) ||
142 + ! empty( $this->support_phone ) ||
143 + ! empty( $this->is_success_manager )
144 + );
145 + }
146 +
147 + /**
148 + * @author Vova Feldman (@svovaf)
149 + * @since 1.0.9
150 + *
151 + * @return bool
152 + */
153 + function has_trial() {
154 + return ! $this->is_free() &&
155 + is_numeric( $this->trial_period ) && ( $this->trial_period > 0 );
156 + }
157 157 }