PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / trunk
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar vtrunk
3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 1.2.2 All 155 releases
notificationx / includes / Core / GetData.php

GetData.php in NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar trunk, at includes/Core/GetData.php

36 lines 861 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Extension Factory
4 *
5 * @package NotificationX\Extensions
6 */
7
8 namespace NotificationX\Core;
9
10 use NotificationX\Admin\Settings;
11 use NotificationX\GetInstance;
12
13 /**
14 * GetData Class
15 */
16 class GetData extends \ArrayObject {
17
18 public function __get($name) {
19 if ($this->offsetExists($name)) {
20 return $this->offsetGet($name);
21 }
22 // Mirrors PHP's own undefined-property notice for this ArrayAccess wrapper;
23 // dropping it would make a mistyped property silently read as null.
24 // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
25 trigger_error( esc_html( 'Undefined property: ' . $name ) );
26 }
27
28 #[\ReturnTypeWillChange]
29 public function offsetGet ($name){
30 if(parent::offsetExists($name)){
31 return parent::offsetGet($name);
32 }
33 }
34
35 }
36