PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 2.1.4
Visualizer – Tables & Charts Manager with Built-in AI Generator v2.1.4
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
visualizer / vendor / codeinwp / themeisle-sdk / class-themeisle-sdk-widget.php

class-themeisle-sdk-widget.php in Visualizer – Tables & Charts Manager with Built-in AI Generator 2.1.4, at vendor/codeinwp/themeisle-sdk/class-themeisle-sdk-widget.php

51 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 * The widget model class for ThemeIsle SDK
4 *
5 * @package ThemeIsleSDK
6 * @subpackage Widgets
7 * @copyright Copyright (c) 2017, Marius Cristea
8 * @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
9 * @since 1.0.0
10 */
11 // Exit if accessed directly.
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15 if ( ! class_exists( 'ThemeIsle_SDK_Widget' ) ) :
16 /**
17 * Widget model for ThemeIsle SDK.
18 */
19 abstract class ThemeIsle_SDK_Widget {
20 /**
21 * @var ThemeIsle_SDK_Product $product Themeisle Product.
22 */
23 protected $product;
24
25 /**
26 * ThemeIsle_SDK_Widget constructor.
27 *
28 * @param ThemeIsle_SDK_Product $product_object Product Object.
29 */
30 public function __construct( $product_object ) {
31 if ( $product_object instanceof ThemeIsle_SDK_Product ) {
32 $this->product = $product_object;
33 }
34 $this->setup_hooks();
35 }
36
37 /**
38 * Registers the hooks and then delegates to the child
39 */
40 public function setup_hooks() {
41 $this->setup_hooks_child();
42 }
43
44 /**
45 * Abstract function for delegating to the child
46 */
47 protected abstract function setup_hooks_child();
48
49 }
50 endif;
51