PluginProbe
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder / 1.0.5
Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder v1.0.5
3.6.0 3.5.0 trunk 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.6.1 1.0.7 1.0.8 1.0.9 1.1 1.1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.5 1.5.1 All 110 releases
buttonizer-multifunctional-button / freemius / includes / entities / class-fs-plugin.php

class-fs-plugin.php in Buttonizer – Floating Menus, Sticky Buttons, & Popup Builder 1.0.5, at freemius/includes/entities/class-fs-plugin.php

94 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Freemius
4 * @copyright Copyright (c) 2015, Freemius, Inc.
5 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
6 * @since 1.0.3
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 class FS_Plugin extends FS_Scope_Entity {
14 /**
15 * @since 1.0.6
16 * @var null|number
17 */
18 public $parent_plugin_id;
19 /**
20 * @var string
21 */
22 public $title;
23 /**
24 * @var string
25 */
26 public $slug;
27 /**
28 * @var string 'plugin' or 'theme'
29 */
30 public $type;
31
32 #region Install Specific Properties
33
34 /**
35 * @var string
36 */
37 public $file;
38 /**
39 * @var string
40 */
41 public $version;
42 /**
43 * @var bool
44 */
45 public $auto_update;
46 /**
47 * @var FS_Plugin_Info
48 */
49 public $info;
50 /**
51 * @since 1.0.9
52 *
53 * @var bool
54 */
55 public $is_premium;
56 /**
57 * @since 1.0.9
58 *
59 * @var bool
60 */
61 public $is_live;
62
63 #endregion Install Specific Properties
64
65 /**
66 * @param stdClass|bool $plugin
67 */
68 function __construct( $plugin = false ) {
69 parent::__construct( $plugin );
70
71 $this->is_premium = false;
72 $this->is_live = true;
73
74 if ( isset( $plugin->info ) && is_object( $plugin->info ) ) {
75 $this->info = new FS_Plugin_Info( $plugin->info );
76 }
77 }
78
79 /**
80 * Check if plugin is an add-on (has parent).
81 *
82 * @author Vova Feldman (@svovaf)
83 * @since 1.0.6
84 *
85 * @return bool
86 */
87 function is_addon() {
88 return isset( $this->parent_plugin_id ) && is_numeric( $this->parent_plugin_id );
89 }
90
91 static function get_type() {
92 return 'plugin';
93 }
94 }