PluginProbe ʕ •ᴥ•ʔ
PixelYourSite – Your smart PIXEL (TAG) & API Manager / 8.0.9
PixelYourSite – Your smart PIXEL (TAG) & API Manager v8.0.9
11.2.0.6 trunk 1.0 1.01 1.02 1.03 1.04 1.05 1.05.1 10.0.0 10.0.1 10.0.1.1 10.0.1.2 10.0.2 10.0.3 10.0.3.1 10.0.4 10.1.0 10.1.1 10.1.1.1 10.1.1.2 10.1.2.1 10.1.3 10.2.0 10.2.0.1 10.2.0.2 10.2.1 11.0.0 11.0.0.1 11.0.0.2 11.0.0.3 11.0.0.4 11.0.1 11.0.1.1 11.0.1.2 11.0.2 11.1.0 11.1.1 11.1.2 11.1.3 11.1.4 11.1.4.1 11.1.4.2 11.1.5 11.1.5.1 11.1.5.2 11.2.0 11.2.0.1 11.2.0.2 11.2.0.3 11.2.0.4 11.2.0.5 2.0 2.1 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.7 2.8.10 2.8.9 3.0 3.0.1 3.0.2 3.0.3 3.1.0 4.0.0 4.0.1 4.0.2 4.0.3 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5.2 5.0.6 5.0.7 5.0.8 5.0.9 5.1.0 5.2.0 5.2.1 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 7.0.0 7.0.1 7.0.2 7.0.3 7.0.4 7.0.5 7.1.0 7.1.1 7.1.10 7.1.11 7.1.12 7.1.13 7.1.14 7.1.2 7.1.3 7.1.4 7.1.5 7.1.6 7.1.7 7.1.8 7.1.9 7.2.0 7.2.1 7.2.1.1 7.3.0 8.0.0 8.0.1 8.0.2 8.0.3 8.0.4 8.0.5 8.0.6 8.0.7 8.0.8 8.0.9 8.1.0 8.1.1 8.2.0 8.2.1 8.2.10 8.2.11 8.2.12 8.2.13 8.2.14 8.2.15 8.2.16 8.2.17 8.2.18 8.2.2 8.2.3 8.2.4 8.2.5 8.2.6 8.2.7 8.2.8 9.0.0 9.1.0 9.1.1 9.2.0 9.2.1 9.2.2 9.3.0 9.3.1 9.3.2 9.3.3 9.3.4 9.3.5 9.3.6 9.3.7 9.3.8 9.3.8.1 9.3.9 9.4.0 9.4.0.1 9.4.1 9.4.2 9.4.3 9.4.5 9.4.5.1 9.4.6 9.4.7 9.4.7.1 9.5.0 9.5.0.1 9.5.1 9.5.1.1 9.5.3 9.5.4 9.5.5 9.6.0 9.6.0.1 9.6.1 9.6.1.1 9.6.2 9.7.0 9.7.0.1 9.7.1 9.7.2
pixelyoursite / includes / events / class-event-single.php
pixelyoursite / includes / events Last commit date
class-event-grouped.php 5 years ago class-event-single.php 5 years ago class-event.php 5 years ago class-events-custom.php 5 years ago class-events-edd.php 5 years ago class-events-fdp.php 5 years ago class-events-signal.php 5 years ago class-events-woo.php 5 years ago interface-events.php 5 years ago
class-event-single.php
60 lines
1 <?php
2 namespace PixelYourSite;
3 class SingleEvent extends PYSEvent{
4
5 public $params = array(
6 );
7 public $payload = array(
8 'delay' => 0
9 );
10
11 public function __construct($id,$type){
12 parent::__construct($id,$type);
13 $this->payload['type'] = $type;
14 }
15
16
17 /**
18 * Insert Array params for event
19 * @param array $data
20 */
21 function addParams($data) {
22
23 if(is_array($data)) {
24 $this->params = array_merge($this->params,$data);
25 } else {
26 error_log("addParams no array ".print_r($data,true));
27 }
28
29 }
30
31 /**
32 * Insert additional Array data for event
33 * @param array $data
34 */
35 function addPayload($data) {
36 if(is_array($data)) {
37 $this->payload = array_merge($this->payload,$data);
38 } else {
39 error_log("addPayload no array ".print_r($data,true));
40 }
41
42 }
43
44 function getData() {
45 $data = $this->payload;
46 $data['params'] = sanitizeParams($this->params);
47
48 $data['delay'] = isset( $this->payload['delay'] ) ? $this->payload['delay'] : 0;
49 $data['ids'] = isset( $this->payload['ids'] ) ? $this->payload['ids'] : array();
50 $data['hasTimeWindow'] = isset( $this->payload['hasTimeWindow'] ) ? $this->payload['hasTimeWindow'] : false;
51 $data['timeWindow'] = isset( $this->payload['timeWindow'] ) ? $this->payload['timeWindow'] : 0;
52 $data['pixelIds'] = isset( $this->payload['pixelIds'] ) ? $this->payload['pixelIds'] : array();
53 $data['eventID'] = isset( $this->payload['eventID'] ) ? $this->payload['eventID'] : "";
54 $data['woo_order'] = isset( $this->payload['woo_order'] ) ? $this->payload['woo_order'] : "";
55 $data['edd_order'] = isset( $this->payload['edd_order'] ) ? $this->payload['edd_order'] : "";
56
57 return $data;
58 }
59 }
60