Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
data_source_management.inc
1 <?php
18 require_once SQ_INCLUDE_PATH.'/asset_management.inc';
19 
31 {
32 
33 
41  {
42  Asset_Management::__construct($pm);
43 
44  $this->vars = Array(
45  'name' => Array(
46  'added' => '0.1',
47  'type' => 'text',
48  'default' => '',
49  'is_admin' => FALSE,
50  'is_contextable'=> TRUE,
51  ),
52  'dsn' => Array(
53  'added' => '0.1',
54  'type' => 'text',
55  'default' => '',
56  ),
57  'shadow_name' => Array(
58  'added' => '0.1',
59  'type' => 'text',
60  'default' => '',
61  ),
62  'dynamic_vars' => Array(
63  'added' => '0.1',
64  'type' => 'serialise',
65  'default' => Array(),
66  ),
67  'parameter_map' => Array(
68  'added' => '0.1',
69  'type' => 'parameter_map',
70  'default' => Array(),
71  'parameters' => Array(
72  'parameters' => Array(),
73  ),
74  ),
75  'filter_enabled' => Array (
76  'added' => '0.1',
77  'type' => 'boolean',
78  'default' => FALSE,
79  'parameters' => Array('allow_empty' => FALSE),
80  'description' => 'Whether to run the filters',
81  ),
82  'record_filters' => Array (
83  'added' => '0.1',
84  'type' => 'serialise',
85  'default' => Array(),
86  'description' => 'Fields info for filtering the records in the datasource',
87  ),
88  'filter_logic' => Array(
89  'added' => '0.1',
90  'type' => 'selection',
91  'default' => 'AND',
92  'description' => 'Whether to include all or any filter fields.',
93  'parameters' => Array(
94  'multiple' => FALSE,
95  'allow_empty' => FALSE,
96  'options' => Array(
97  'AND' => 'Match on ALL conditions',
98  'OR' => 'Match on at least ONE condition',
99  ),
100  ),
101  ),
102  'filter_mode' => Array(
103  'added' => '0.1',
104  'type' => 'selection',
105  'default' => 'include',
106  'description' => 'Whether to include all or any filter fields.',
107  'parameters' => Array(
108  'multiple' => FALSE,
109  'allow_empty' => FALSE,
110  'options' => Array(
111  'exclude' => 'Filter out the records matching the given conditions',
112  'include' => 'Return the records matching the given conditions',
113  ),
114  ),
115  ),
116  'cache_key' => Array (
117  'added' => '0.1',
118  'type' => 'text',
119  'default' => '',
120  'description' => 'Hash to unqiuely indentify the datasource results in cache',
121  ),
122 
123  );
124 
125  }//end constructor
126 
127 
128 }//end class
129 
130 ?>