Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
page_calendar_events_search_management.inc
1 <?php
17 require_once SQ_INCLUDE_PATH.'/asset_management.inc';
18 
29 {
30 
31 
39  {
40  $this->Asset_Management($pm);
41 
42  $this->vars['types'] = Array(
43  'added' => '0.1',
44  'type' => 'serialise',
45  'default' => Array(
46  'calendar_event_single' => '1',
47  'calendar_event_recurring' => '1',
48  'calendar_event_multi_date' => '1',
49  ),
50  'description' => 'Searchable asset types',
51  );
52  $this->vars['statuses'] = Array(
53  'added' => '0.8',
54  'type' => 'serialise',
55  'default' => Array(0 => SQ_STATUS_LIVE),
56  'description' => 'Statuses that are being listed.',
57  );
58  $this->vars['events_filters'] = Array(
59  'added' => '0.1',
60  'type' => 'serialise',
61  'default' => Array(),
62  'description' => 'Calendar events date filter fields.',
63  );
64 
65  $this->vars['events_filter_logic'] = Array(
66  'added' => '0.1',
67  'type' => 'selection',
68  'default' => 'AND',
69  'description' => 'Whether to include all or any events date filter fields.',
70  'parameters' => Array(
71  'multiple' => FALSE,
72  'allow_empty' => FALSE,
73  'options' => Array(
74  'AND' => 'Match on ALL fields',
75  'OR' => 'Match on at least ONE field',
76  ),
77  ),
78  );
79 
80  $this->vars['main_logic'] = Array(
81  'added' => '0.1',
82  'type' => 'selection',
83  'default' => 'AND',
84  'description' => 'Whether to include all or any events date filter fields.',
85  'parameters' => Array(
86  'multiple' => FALSE,
87  'allow_empty' => FALSE,
88  'options' => Array(
89  'AND' => 'Match on both the Date Filter and Search Field Settings',
90  'OR' => 'Match on either the Date Filter or Search Field Settings',
91  ),
92  ),
93  );
94 
95  $this->vars['events_filter_allow_empty_search'] = Array(
96  'added' => '0.1',
97  'type' => 'boolean',
98  'default' => FALSE,
99  'description' => 'If true, empty date filter query will search for everything',
100  'parameters' => Array('allow_empty' => FALSE),
101  );
102 
103 
104  }//end constructor
105 
106 
113  function getEventList()
114  {
115  return Array(
116  Array(
117  'event_name' => 'requestKeywords',
118  'broadcast_type_code' => 'content_type',
119  'broadcast_strict_type_code' => FALSE,
120  'options' => Array(
121  'side_of_link' => 'major',
122  'indirect' => TRUE,
123  'is_exclusive' => NULL,
124  'is_dependant' => 1,
125  'value' => '',
126  'link_type' => SQ_LINK_TYPE_2 | SQ_LINK_TYPE_1,
127  ),
128  ),
129  );
130 
131  }//end getEventList()
132 
133 }//end class
134 ?>