PluginProbe
ezCache / trunk
ezCache vtrunk
2.6.5 2.6.4 2.6.2 2.6.3 2.6.1 2.6.0 2.5.6 2.5.5 2.5.4 2.5.3 2.5.2 2.5.1 2.5 2.2.1 2.2.2 trunk 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.3 1.3.1 1.3.10 1.3.11 All 49 releases
ezcache / includes / LicenseApi.php

LicenseApi.php in ezCache trunk, at includes/LicenseApi.php

68 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * LicenseApi — stub (licensing system removed).
4 *
5 * Pro is unlocked for everyone. Methods are kept for backward compatibility
6 * with existing callers and return neutral "everything is fine" values.
7 */
8
9 namespace Upress\EzCache;
10
11 class LicenseApi {
12
13 /**
14 * @return bool
15 */
16 public function is_premium() {
17 return true;
18 }
19
20 /**
21 * @return string
22 */
23 public function get_masked_license_key() {
24 return '';
25 }
26
27 /**
28 * @return string
29 */
30 public function get_license_key() {
31 return '';
32 }
33
34 /**
35 * @return array
36 */
37 public function get_status() {
38 return [
39 'type' => 'pro',
40 'status' => 'active',
41 'expires_at' => '',
42 'conversions_left' => 'unlimited',
43 'plan' => 'Pro',
44 ];
45 }
46
47 /**
48 * @param string $key
49 * @return array
50 */
51 public function activate( $key ) {
52 return [
53 'success' => true,
54 'message' => __( 'Pro is already unlocked.', 'ezcache' ),
55 ];
56 }
57
58 /**
59 * @return array
60 */
61 public function deactivate() {
62 return [
63 'success' => true,
64 'message' => __( 'Pro is unlocked for everyone; nothing to deactivate.', 'ezcache' ),
65 ];
66 }
67 }
68