PluginProbe
WPPizza – A Restaurant Plugin / 3.20
WPPizza – A Restaurant Plugin v3.20
trunk 2.16.11.28 3.19 3.19.1 3.19.2 3.19.3 3.19.4 3.19.5 3.19.6 3.19.7 3.19.7.1 3.19.7.2 3.19.7.3 3.19.7.4 3.19.8 3.19.8.1 3.19.8.2 3.19.8.3 3.19.9 3.20 3.20.1
wppizza / classes / class.wppizza.dbcookie.php

class.wppizza.dbcookie.php in WPPizza – A Restaurant Plugin 3.20, at classes/class.wppizza.dbcookie.php

97 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3 /*########################################################################################################################
4 #
5 #
6 # CLASS - WPPIZZA_DBCOOKIE ~ WORK IN PROGESS TO EVENTUALLY MOVE AWAY FROM PHHP SESSIONS
7 # Using cookies and db entries to handle session data instead of php sessions
8 #
9 # @package WPPIZZA
10 # @subpackage WPPIZZA_DBCOOKIE
11 # @copyright Copyright (c) 2022, wp-pizza.com
12 # @since 3.16
13 #
14 ########################################################################################################################*/
15 if (!class_exists( 'WPPIZZA' ) || class_exists( 'WPPIZZA_DBCOOKIE' )) {
16 return;
17 }
18 class WPPIZZA_DBCOOKIE{
19
20 #private $pluginOptions;
21
22 public $cookieName;
23 public $cookieValue;
24
25
26 /************************************************************
27 *
28 * [construct]
29 *
30 *************************************************************/
31 function __construct($cookieName = WPPIZZA_SLUG, $cookieValue = '') {
32
33 /*
34 cookie name
35 */
36 $this->cookieName = $cookieName;
37
38 /*
39 cookie value
40 */
41 $this->cookieValue = $cookieValue;
42
43
44 /*****************************************************
45 *
46 * admin - setup
47 *
48 ******************************************************/
49 if(is_admin()){
50
51 }
52
53 /*****************************************************
54 *
55 * frontend
56 *
57 ******************************************************/
58 if(!is_admin()){
59 }
60
61 }
62
63 /**************************************************************************************************
64 *
65 *
66 * [INIT]
67 *
68 *
69 **************************************************************************************************/
70 /**
71 * Set cookie
72 */
73 function set_cookie($value) {
74
75 $this -> cookie = array(
76 'name' => $this->cookieName,
77 'value' => $value ,
78 'expiry' => '',
79 );
80
81 return;
82
83 }
84
85
86
87 /**************************************************************************************************
88 *
89 *
90 * [SETUP]
91 *
92 *
93 **************************************************************************************************/
94 ### WORK IN PROGRESS ##
95
96 }
97 ?>