162 |
//make sure its set to something. |
//make sure its set to something. |
163 |
if ($obj == '') { |
if ($obj == '') { |
164 |
$obj = " "; |
$obj = " "; |
165 |
|
} |
166 |
|
// if item is match by expression we will replace it with an link object |
167 |
|
elseif($this->_decode_column_item_expr($obj)) { |
168 |
|
$obj = $this->_decode_column_item_expr($obj); |
169 |
|
} |
170 |
|
// if item is an Array we will replace it with an selection form object |
171 |
|
elseif($this->_decode_column_item_array($obj)) { |
172 |
|
$obj = $this->_decode_column_item_array($obj); |
173 |
} |
} |
174 |
|
|
175 |
|
|
176 |
//make sure we don't put a right border on the last |
//make sure we don't put a right border on the last |
177 |
//column we are working on. |
//column we are working on. |
291 |
if ($cnt == 1) { |
if ($cnt == 1) { |
292 |
$container->push(form_hidden($this->_search_fieldVar, $field)); |
$container->push(form_hidden($this->_search_fieldVar, $field)); |
293 |
} |
} |
294 |
|
|
295 |
|
$hidden_fields = $this->get_hidden_fields(); |
296 |
|
if(is_array($hidden_fields)) { |
297 |
|
foreach($hidden_fields as $key => $value) { |
298 |
|
$container->push(form_hidden($key, $value)); |
299 |
|
} |
300 |
|
} |
301 |
|
|
302 |
|
$container->push(form_close() ); |
303 |
|
|
304 |
return $container; |
return $container; |
305 |
} |
} |
306 |
|
|
307 |
|
|
308 |
|
function get_hidden_fields() { |
309 |
|
user_error("DefaulGUIDataList::get_hidden_fields() - ". |
310 |
|
"child class must override this method ". |
311 |
|
"this function should return a hash for hidden fields, if not needed just return" ); |
312 |
|
} |
313 |
|
|
314 |
|
|
315 |
|
function _decode_column_item_array($obj) { |
316 |
|
user_error("DefaulGUIDataList::_decode_column_item_array() - ". |
317 |
|
"child class must override this method ". |
318 |
|
"this function should decode the column_item if it is a (sub-) array,". |
319 |
|
"array should e.g. replaced by a select form." ); |
320 |
|
} |
321 |
|
|
322 |
|
function _decode_column_item_expr($obj) { |
323 |
|
user_error("DefaulGUIDataList::_decode_column_item_expr() - ". |
324 |
|
"child class must override this method ". |
325 |
|
"this function should decode the column_item, if it is encoded for e.g. objects" ); |
326 |
|
} |
327 |
} |
} |
328 |
|
|
329 |
/** |
/** |