Squiz Matrix
4.12.2
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Functions
Variables
Pages
page_poll_management.inc
1
<?php
17
require_once SQ_INCLUDE_PATH.
'/asset_management.inc'
;
18
31
class
Page_Poll_Management
extends
Asset_Management
32
{
33
34
39
function
__construct
(&$pm)
40
{
41
$this->
Asset_Management
($pm);
42
$this->vars = Array(
43
// currently active question
44
'active_question'
=> Array(
45
'added'
=>
'0.1'
,
46
'type'
=>
'assetid'
,
47
'default'
=>
''
,
48
),
49
'vote_button_text'
=> Array(
50
'added'
=>
'0.2'
,
51
'type'
=>
'text'
,
52
'default'
=>
'Vote'
,
53
'is_contextable'
=> TRUE,
54
),
55
'allow_multiple_votes'
=> Array(
56
'added'
=>
'0.2'
,
57
'type'
=>
'boolean'
,
58
'default'
=> FALSE,
59
'parameters'
=> Array(
60
'allow_empty'
=> FALSE,
61
),
62
),
63
'previous_questions_text'
=> Array(
64
'added'
=>
'0.2'
,
65
'type'
=>
'text'
,
66
'default'
=>
'View Previous Questions'
,
67
'is_contextable'
=> TRUE,
68
),
69
'view_results_text'
=> Array(
70
'added'
=>
'0.2'
,
71
'type'
=>
'text'
,
72
'default'
=>
'View Results'
,
73
'is_contextable'
=> TRUE,
74
),
75
'new_window_optionsss'
=> Array(
76
'added'
=>
'0.2'
,
77
'type'
=>
'serialise'
,
78
'default'
=> Array(
79
'width'
=> 250,
80
'height'
=> 400,
81
'scrollbars'
=>
'no'
,
82
'status'
=>
'no'
,
83
'resizable'
=>
'no'
,
84
),
85
),
86
'new_window'
=> Array(
87
'added'
=>
'0.2'
,
88
'type'
=>
'boolean'
,
89
'default'
=> FALSE,
90
'parameters'
=> Array(
91
'allow_empty'
=> FALSE,
92
),
93
),
94
'new_window_options'
=> Array(
95
'added'
=>
'0.2'
,
96
'type'
=>
'selection'
,
97
'default'
=> FALSE,
98
'parameters'
=> Array(
99
'multiple'
=> TRUE,
100
'allow_empty'
=> TRUE,
101
'options'
=> Array(
102
'hide_location'
=>
'Hide Location Bar'
,
103
'hide_menubar'
=>
'Hide Menubar'
,
104
'hide_scrollbars'
=>
'Hide Scrollbars'
,
105
'hide_status'
=>
'Hide Status Bar'
,
106
'hide_toolbar'
=>
'Hide Tool Bar'
,
107
'not_resizable'
=>
'Not Resizable'
,
108
),
109
),
110
),
111
'new_window_width'
=> Array(
112
'added'
=>
'0.2'
,
113
'type'
=>
'int'
,
114
'default'
=> 0,
115
),
116
'new_window_height'
=> Array(
117
'added'
=>
'0.2'
,
118
'type'
=>
'int'
,
119
'default'
=> 0,
120
),
121
'format_bodycopies'
=> Array(
122
'added'
=>
'0.2'
,
123
'type'
=>
'serialise'
,
124
'default'
=> Array(
125
'question_format'
=>
'vote_formats'
,
126
'option_list_format'
=>
'vote_formats'
,
127
'results_format'
=>
'results_formats'
,
128
'results_list_format'
=>
'results_formats'
,
129
'past_questions_format'
=>
'past_questions_formats'
,
130
'past_questions_list_format'
=>
'past_questions_formats'
,
131
),
132
),
133
// graph box
134
'graph_box_width'
=> Array(
135
'added'
=>
'0.1'
,
136
'type'
=>
'text'
,
137
'default'
=>
'400'
,
138
),
139
'graph_box_height'
=> Array(
140
'added'
=>
'0.1'
,
141
'type'
=>
'text'
,
142
'default'
=>
'400'
,
143
),
144
'graph_box_colour_bar'
=> Array(
145
'added'
=>
'0.1'
,
146
'type'
=>
'colour'
,
147
'default'
=>
'#0000cc'
,
148
),
149
);
150
151
}
//end constructor
152
153
160
function
getEventList
()
161
{
162
return
Array(
163
Array(
164
'event_name'
=>
'requestKeywords'
,
165
'broadcast_type_code'
=>
'content_type'
,
166
'broadcast_strict_type_code'
=> FALSE,
167
'options'
=> Array(
168
'side_of_link'
=>
'major'
,
169
'indirect'
=> TRUE,
170
'is_exclusive'
=> NULL,
171
'is_dependant'
=> 1,
172
'value'
=>
''
,
173
'link_type'
=> SQ_LINK_TYPE_2 | SQ_LINK_TYPE_1,
174
),
175
),
176
);
177
178
}
//end getEventList()
179
180
181
}
//end class
182
183
184
?>
squiz_matrix
packages
cms
page_templates
page_poll
page_poll_management.inc
Generated on Tue Jan 29 2013 14:04:58 for Squiz Matrix by
1.8.3.1