tags)
$function_name="Excel_data_{$var_name}";
$xml .=$this->$function_name($var_name, $field);
** sql WHERE function (LW) // for some fields we have custom function, for example course_category search "LW_where_function_course_category_popup()"
$function_name="LW_where_function_{$var_name}";
$arr=$this->$function_name($str, $var_name, $field, $arr);
** sql ORDER_BY function (LW)
$function_name="LW_order_by_function_{$orderBy}";
$order_by_full =$this->$function_name($order_direction); // return this value directly, it should include all field names and ASC, DESC etc
** LW title TD (LW)
$function_name="LW_title_td_function_{$var_name}";
$title_html=$this->$function_name();
--> return something like this : '';
** LW data TD (LW)
$function_name="LW_data_td_function_{$var_name}";
$data_html .= $this->$function_name($var_name, $field, $data, $data_display_value, $td_class, $bg_color, $attributes_str);
--> return something like:
$data_html .= ' | ';
$data_html .= $data_display_value;
$data_html .= " | ";
** field html (before, after, below, above) additions
$function_name="get_add_html_for_{$var_name}";
$ret_arr=$this->$function_name($var_name, $field, $this->group_fields); // return position and raw html in array: array('html'=>'', 'location'=>'before_field')
--> location: one of "before_field", "before_label", "after_label", "after_field"
--> html: raw html
** assign function
$function_name="Custom_assign_function_".$var_name;
$arr_assign=$this->$function_name($var_name, $field, $arr_assign);
** validation function
$function_name="Validation_function_".$var_name;
$err_msg=$this->$function_name();
------------------
* Other notes
------------------
** don't process list view at all. This is good if we are using only Seach form, but we don't want to show anything in the list view, also we don't want to create list view at all
function IsCreateListView() {
return true;
}
** process list view but don't show list view (for example Excel reports)
function CreateLW() {
return "";
}