Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
ecommerce_cart_management.inc
1
<?php
18
require_once SQ_INCLUDE_PATH.
'/asset_management.inc'
;
19
30
class
Ecommerce_Cart_Management
extends
Asset_Management
31
{
32
33
38
function
Ecommerce_Cart_Management
(&$pm)
39
{
40
$this->
Asset_Management
($pm);
41
42
$this->vars = Array(
43
'name'
=> Array(
44
'added'
=>
'0.0.1'
,
45
'type'
=>
'text'
,
46
'default'
=>
''
,
47
'description'
=>
'The full name of the cart'
,
48
'update_fn'
=>
''
,
49
),
50
'short_name'
=> Array(
51
'added'
=>
'0.0.1'
,
52
'type'
=>
'text'
,
53
'default'
=>
''
,
54
'description'
=>
'The short name of the cart'
,
55
'update_fn'
=>
''
,
56
),
57
'ecommerce_checkout_id'
=> Array(
58
'added'
=>
'0.0.1'
,
59
'type'
=>
'assetid'
,
60
'default'
=> 0,
61
'description'
=>
'The assetid of the ecommerce checkout asset that we are connected with'
,
62
),
63
'show_price'
=> Array(
64
'added'
=>
'0.0.1'
,
65
'type'
=>
'boolean'
,
66
'default'
=> TRUE,
67
'description'
=>
'Whether to show the price columns'
,
68
'parameters'
=> Array(
69
'allow_empty'
=> FALSE,
70
),
71
'update_fn'
=>
''
,
72
),
73
'checkout_text'
=> Array(
74
'added'
=>
'0.0.1'
,
75
'type'
=>
'text'
,
76
'default'
=>
'Proceed to Checkout'
,
77
'description'
=>
'The text on the "checkout" button'
,
78
'is_contextable'
=> TRUE,
79
),
80
'cart_updated_text'
=> Array(
81
'added'
=>
'0.0.1'
,
82
'type'
=>
'text'
,
83
'default'
=>
'Your Cart has been Updated'
,
84
'description'
=>
'The text displayed when the cart is updated'
,
85
'is_contextable'
=> TRUE,
86
),
87
'no_items_text'
=> Array(
88
'added'
=>
'0.2'
,
89
'type'
=>
'text'
,
90
'default'
=>
'There are currently no items in your cart'
,
91
'description'
=>
'The text that displays instead of the asset listing, when you have no items in your cart'
,
92
'is_contextable'
=> TRUE,
93
),
94
'parameter_map'
=> Array(
95
'added'
=>
'0.4'
,
96
'type'
=>
'parameter_map'
,
97
'default'
=> Array(),
98
'description'
=>
'Dynamically maps an request var to an attribute'
,
99
'parameters'
=> Array(
100
'parameters'
=> Array(
101
'add_item'
=>
'Add an item to the cart'
,
102
),
103
),
104
),
105
'asset_selections'
=> Array(
106
'added'
=>
'0.3'
,
107
'type'
=>
'serialise'
,
108
'default'
=> Array(
109
'Quantity'
=> Array(
110
'type'
=>
'textbox'
,
111
'options'
=> Array(
112
'allow_multiple'
=> 0,
113
'allow_negative'
=> 0,
114
'restrict_range'
=> Array(
115
'enable'
=> 0,
116
'min'
=> 0,
117
'max'
=> 10,
118
),
119
),
120
'permanent'
=> 1,
121
),
122
'Remove'
=> Array(
123
'type'
=>
'radio'
,
124
'options'
=> Array(
125
'allow_multiple'
=> 1,
126
'allow_negative'
=> 0,
127
'restrict_range'
=> Array(
128
'enable'
=> 0,
129
'min'
=> 0,
130
'max'
=> 10,
131
),
132
),
133
'permanent'
=> 1,
134
),
135
),
136
'description'
=>
'Sets of named checkboxes, drop-down lists, etc'
,
137
),
138
'use_local_cart'
=> Array(
139
'added'
=>
'0.4'
,
140
'type'
=>
'boolean'
,
141
'default'
=> FALSE,
142
'description'
=>
'If yes, use the ecommerce_checkout local cart instead of the global cart'
,
143
'parameters'
=> Array(
144
'allow_empty'
=> FALSE,
145
),
146
'update_fn'
=>
''
,
147
),
148
'float_precision'
=> Array(
149
'added'
=>
'0.5'
,
150
'type'
=>
'int'
,
151
'default'
=>
'2'
,
152
'is_admin'
=> TRUE,
153
),
154
);
155
156
}
//end constructor
157
158
165
function
getEventList
()
166
{
167
return
Array(
168
Array(
169
'event_name'
=>
'requestKeywords'
,
170
'broadcast_type_code'
=>
'content_type'
,
171
'broadcast_strict_type_code'
=> FALSE,
172
'options'
=> Array(
173
'side_of_link'
=>
'major'
,
174
'indirect'
=> TRUE,
175
'is_exclusive'
=> NULL,
176
'is_dependant'
=> 1,
177
'value'
=>
''
,
178
'link_type'
=> SQ_LINK_TYPE_2 | SQ_LINK_TYPE_1,
179
),
180
),
181
);
182
183
}
//end getEventList()
184
185
186
}
//end class
187
188
?>
squiz_matrix
packages
ecommerce
ecommerce_cart
ecommerce_cart_management.inc
Generated on Tue Jan 29 2013 14:05:00 for Squiz Matrix by
1.8.3.1