1 | <?php |
||
9 | class WPSC_Checkout_Form_Data extends WPSC_Query_Base { |
||
10 | private $raw_data = array(); |
||
11 | private $gateway_data = array(); |
||
12 | private $submitted_data = array(); |
||
13 | private $log_id; |
||
14 | |||
15 | /** |
||
16 | * An array of arrays of cache keys. Allows versioning the cached values, |
||
17 | * and busting cache for a group if needed (by incrementing the version). |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $group_ids = array( |
||
22 | 'raw_data' => array( |
||
23 | 'group' => 'wpsc_checkout_form_raw_data', |
||
24 | 'version' => 1, |
||
25 | ), |
||
26 | 'gateway_data' => array( |
||
27 | 'group' => 'wpsc_checkout_form_gateway_data', |
||
28 | 'version' => 0, |
||
29 | ), |
||
30 | ); |
||
31 | |||
32 | public function __construct( $log_id ) { |
||
36 | |||
37 | /** |
||
38 | * Fetches the actual $data array. |
||
39 | * |
||
40 | * @access protected |
||
41 | * @since 4.0 |
||
42 | * |
||
43 | * @return void |
||
44 | */ |
||
45 | protected function fetch() { |
||
81 | |||
82 | public function get_raw_data() { |
||
85 | |||
86 | /** |
||
87 | * Prepares the return value for get() (apply_filters, etc). |
||
88 | * |
||
89 | * @access protected |
||
90 | * @since 4.0 |
||
91 | * |
||
92 | * @param mixed $value Value fetched |
||
93 | * @param string $key Key for $data. |
||
94 | * |
||
95 | * @return mixed |
||
96 | */ |
||
97 | protected function prepare_get( $value, $key ) { |
||
100 | |||
101 | /** |
||
102 | * Prepares the return value for get_data() (apply_filters, etc). |
||
103 | * |
||
104 | * @access protected |
||
105 | * @since 4.0 |
||
106 | * |
||
107 | * @return mixed |
||
108 | */ |
||
109 | protected function prepare_get_data() { |
||
112 | |||
113 | public function get_gateway_data() { |
||
157 | |||
158 | /** |
||
159 | * Set specific database fields. |
||
160 | * |
||
161 | * @param string|int $key Expects either form ID or unique name. |
||
162 | * @param string $value Value to be set for field. |
||
163 | * |
||
164 | * @since 4.0 |
||
165 | * @return WPSC_Checkout_Form_Data Current instance of form data. |
||
166 | */ |
||
167 | public function set( $key, $value = '' ) { |
||
178 | |||
179 | /** |
||
180 | * Used in conjunction with set() method, saves individual checkout form fields to database. |
||
181 | * |
||
182 | * @since 4.0 |
||
183 | * @return void |
||
184 | */ |
||
185 | public function save() { |
||
197 | |||
198 | /** |
||
199 | * Save Submitted Form Fields to the wpsc_submited_form_data table. |
||
200 | * |
||
201 | * @param WPSC_Purchase_Log $purchase_log |
||
202 | * @param array $fields |
||
203 | * @return void |
||
204 | */ |
||
205 | public static function save_form( $purchase_log, $fields, $data = array() ) { |
||
251 | |||
252 | } |
||
253 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..