321 |
if ($obj == '') { |
if ($obj == '') { |
322 |
$obj = " "; |
$obj = " "; |
323 |
} |
} |
324 |
|
// if item is match by expression we will replace it with an link object |
325 |
|
elseif($this->_decode_column_item_expr($obj)) { |
326 |
|
$obj = $this->_decode_column_item_expr($obj); |
327 |
|
} |
328 |
|
// if item is an Array we will replace it with an selection form object |
329 |
|
elseif($this->_decode_column_item_array($obj)) { |
330 |
|
$obj = $this->_decode_column_item_array($obj); |
331 |
|
} |
332 |
|
|
333 |
//make sure we don't put a right border on the last |
//make sure we don't put a right border on the last |
334 |
//column we are working on. |
//column we are working on. |
335 |
//$style = "padding-left: 3px;padding-right:3px;border-top: 1px solid #dddddd;"; |
//$style = "padding-left: 3px;padding-right:3px;border-top: 1px solid #dddddd;"; |
450 |
$container->push(form_hidden($this->_vars["search_fieldVar"], $field)); |
$container->push(form_hidden($this->_vars["search_fieldVar"], $field)); |
451 |
} |
} |
452 |
|
|
453 |
|
$hidden_fields = $this->get_hidden_fields(); |
454 |
|
if(is_array($hidden_fields)) { |
455 |
|
foreach($hidden_fields as $key => $value) { |
456 |
|
$container->push(form_hidden($key, $value)); |
457 |
|
} |
458 |
|
} |
459 |
|
$container->push(form_close() ); |
460 |
return $container; |
return $container; |
461 |
} |
} |
462 |
|
|
916 |
return $script; |
return $script; |
917 |
} |
} |
918 |
|
|
919 |
|
function get_hidden_fields() { |
920 |
|
user_error("DefaulGUIDataList::get_hidden_fields() - ". |
921 |
|
"child class must override this method ". |
922 |
|
"this function should return a hash for hidden fields, if not needed just return" ); |
923 |
|
} |
924 |
|
|
925 |
|
function _decode_column_item_array($obj) { |
926 |
|
user_error("DefaulGUIDataList::_decode_column_item_array() - ". |
927 |
|
"child class must override this method ". |
928 |
|
"this function should decode the column_item if it is a (sub-) array,". |
929 |
|
"array should e.g. replaced by a select form." ); |
930 |
|
} |
931 |
|
|
932 |
|
function _decode_column_item_expr($obj) { |
933 |
|
user_error("DefaulGUIDataList::_decode_column_item_expr() - ". |
934 |
|
"child class must override this method ". |
935 |
|
"this function should decode the column_item, if it is encoded for e.g. objects" ); |
936 |
|
} |
937 |
} |
} |
938 |
|
|
939 |
/** |
/** |