modules/Reports/SubpanelFromReports.php
\SubpanelFromReports
- Parent(s)
- \Report
Properties

$addedColumns= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$addedColumns

$alias_lookup= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$alias_lookup

$all_fields= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$all_fields

$chart_description= ''''
''Details- Type
- n/a
- Inherited_from
- \Report::$$chart_description

$chart_group_position= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$chart_group_position

$chart_header_row= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$chart_header_row

$chart_numerical_position= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$chart_numerical_position

$chart_rows= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$chart_rows

$chart_total_header_row= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$chart_total_header_row

$chart_type= ''vBarF''
'vBarF'Details- Type
- n/a
- Inherited_from
- \Report::$$chart_type

$currency_obj= ''
- Type
- n/a
- Inherited_from
- \Report::$$currency_obj

$currency_symbol= ''
- Type
- n/a
- Inherited_from
- \Report::$$currency_symbol

$current_summary_row_count= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$current_summary_row_count

$default_report_def_str= ''{"report_type":"tabular","display_columns":[],"summary_columns":[],"order_by":[{"name":"","sort_dir":""}],"filters_def":[],"group_defs":[],"links_def":[],"module":"Accounts","chart_type":"hBarF","chart_description":""}''
'{"report_type":"tabular","display_columns":[],"summary_columns":[],"order_by":[{"name":"","sort_dir":""}],"filters_def":[],"group_defs":[],"links_def":[],"module":"Accounts","chart_type":"hBarF","chart_description":""}'Details- Type
- n/a
- Inherited_from
- \Report::$$default_report_def_str

$do_chart= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \Report::$$do_chart

$do_export= 'false'
falseDetails- Type
- n/a
- Inherited_from
- \Report::$$do_export

$enable_paging= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \Report::$$enable_paging

$focus= ''
- Type
- n/a
- Inherited_from
- \Report::$$focus

$full_table_beans= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$full_table_beans

$full_table_list= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$full_table_list

$group_by= ''
- Type
- n/a
- Inherited_from
- \Report::$$group_by

$group_column_is_invisible= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$group_column_is_invisible

$group_defs_Info= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$group_defs_Info

$group_fields_map= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$group_fields_map

$group_header= ''
- Type
- n/a
- Inherited_from
- \Report::$$group_header

$group_order_by= ''''
''Details- Type
- n/a
- Inherited_from
- \Report::$$group_order_by

array
$invalid_fields= 'array()'
Array of invalid report fields. Populated during is_definition_valid() call.
Inherited from: \Report::$$invalid_fieldsarray()Details- Type
- array
- Inherited_from
- \Report::$$invalid_fields

$is_saved_report= 'false'
falseDetails- Type
- n/a
- Inherited_from
- \Report::$$is_saved_report

$jtcount= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$jtcount

$layout_manager= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \Report::$$layout_manager

$loaded_links= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$loaded_links

$module= ''Accounts''
'Accounts'Details- Type
- n/a
- Inherited_from
- \Report::$$module

$module_dir= ''Reports''
'Reports'Details- Type
- n/a
- Inherited_from
- \Report::$$module_dir

$obj_array= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$obj_array

$order_by= ''
- Type
- n/a
- Inherited_from
- \Report::$$order_by

$order_by_arr= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$order_by_arr

$order_by_special= ''
- Type
- n/a
- Inherited_from
- \Report::$$order_by_special

$plain_text_output= 'false'
falseDetails- Type
- n/a
- Inherited_from
- \Report::$$plain_text_output

$query= ''''
''Details- Type
- n/a
- Inherited_from
- \Report::$$query

$query_list= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$query_list

$relationships= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$relationships

$report_def= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$report_def

$report_type= ''tabular''
'tabular'Details- Type
- n/a
- Inherited_from
- \Report::$$report_type

$requested_fields_map= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$requested_fields_map

$result= ''
- Type
- n/a
- Inherited_from
- \Report::$$result

$row_count= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$row_count

$row_end= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$row_end

$row_start= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$row_start

$saved_report= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \Report::$$saved_report

$saved_report_id= ''''
''Details- Type
- n/a
- Inherited_from
- \Report::$$saved_report_id

$select_already_defined_hash= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$select_already_defined_hash

$select_fields= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$select_fields

$selected_loaded_custom_links= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$selected_loaded_custom_links

$selected_loaded_links= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$selected_loaded_links

$show_columns= 'false'
falseDetails- Type
- n/a
- Inherited_from
- \Report::$$show_columns

$summary_fields_map= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$summary_fields_map

$summary_order_by_arr= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$summary_order_by_arr

$summary_query= ''''
''Details- Type
- n/a
- Inherited_from
- \Report::$$summary_query

$summary_result= ''
- Type
- n/a
- Inherited_from
- \Report::$$summary_result

$summary_row_count= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$summary_row_count

$summary_row_end= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$summary_row_end

$summary_row_start= '0'
0Details- Type
- n/a
- Inherited_from
- \Report::$$summary_row_start

$summary_select_fields= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$summary_select_fields

$table_name= ''saved_reports''
'saved_reports'Details- Type
- n/a
- Inherited_from
- \Report::$$table_name

$time_date_obj= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \Report::$$time_date_obj

$total_query= ''''
''Details- Type
- n/a
- Inherited_from
- \Report::$$total_query

$total_result= ''
- Type
- n/a
- Inherited_from
- \Report::$$total_result

$total_select_fields= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$total_select_fields

$upgrade_lookup= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \Report::$$upgrade_lookup

$where= ''
- Type
- n/a
- Inherited_from
- \Report::$$where
Methods

Report(
$report_def_str
=
'', $filters_def_str
=
'', $panels_def_str
=
''
)
:
void| Name | Type | Description |
|---|---|---|
| $report_def_str | ||
| $filters_def_str | ||
| $panels_def_str |

_appendNecessaryColumn(
)
:
voidBecause one self column needed to generate primaryid for subpanel list

_get_full_key(
$layout_def
)
:
void| Name | Type | Description |
|---|---|---|
| $layout_def |

create_group_by(
$register_group_by
=
true
)
:
void| Name | Type | Description |
|---|---|---|
| $register_group_by |

create_query(
$query_name
=
'query', $field_list_name
=
'select_fields'
)
:
void| Name | Type | Description |
|---|---|---|
| $query_name | ||
| $field_list_name |

create_select(
$key
=
'display_columns', $field_list_name
=
'select_fields'
)
:
void| Name | Type | Description |
|---|---|---|
| $key | ||
| $field_list_name |

execute_count_query(
$query_name
=
'query'
)
:
void| Name | Type | Description |
|---|---|---|
| $query_name |

execute_query(
$query_name
=
'query', $result_name
=
'result', $row_count_name
=
'row_count', $row_start_name
=
'row_start', $row_end_name
=
'row_end', $limit
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $query_name | ||
| $result_name | ||
| $row_count_name | ||
| $row_start_name | ||
| $row_end_name | ||
| $limit |

filtersIterate(
$filters, $where_clause
)
:
void| Name | Type | Description |
|---|---|---|
| $filters | ||
| $where_clause |

filtersIterateForUI(
$filters, $verdef_arr_for_filters
)
:
void| Name | Type | Description |
|---|---|---|
| $filters | ||
| $verdef_arr_for_filters |

fixReportDefs(
)
:
voidBug #52757 Tries to find missed relations and removes them from full_table_list
Inherited from: \Report::fixReportDefs()
getColumnFieldName(
array $display_column
)
:
string
| Name | Type | Description |
|---|---|---|
| $display_column | array |
| Type | Description |
|---|---|
| string |

getDataTypeForColumnsForMatrix(
$column_field_name
=
'summary_columns'
)
:
void| Name | Type | Description |
|---|---|---|
| $column_field_name |

getExt2FieldDefSelectPiece(
\$field_def $field_def, \$add_alias $add_alias
=
true
)
:
void
This is a private helper function to separate a piece of code that creates the select statement for a field where there is an aggregation of columns
| Name | Type | Description |
|---|---|---|
| $field_def | \$field_def | Array representing the field definition to build the select piece for |
| $add_alias | \$add_alias | boolean true to add the column alias, false otherwise (you would want false for group by) |

getFieldDefFromLayoutDef(
$layout_def
)
:
void| Name | Type | Description |
|---|---|---|
| $layout_def |

getModules(
$report_def
)
:
void| Name | Type | Description |
|---|---|---|
| $report_def |

getRelatedAliasName(
$linked_field
)
:
void| Name | Type | Description |
|---|---|---|
| $linked_field |

getRelatedLinkAliasName(
$linked_field
)
:
void| Name | Type | Description |
|---|---|---|
| $linked_field |

getTableFromField(
$layout_def
)
:
void| Name | Type | Description |
|---|---|---|
| $layout_def |

getTruncatedColumnAlias(
$column_name
)
:
voidgetTruncatedColumnAlias This function ensures that a column alias is no more than 28 characters. Shoulud the column_name argument exceed 28 charcters, it creates an alias using the first 22 characters of the column_name plus an md5 of the first 6 characters of the lowercased column_name value.
Inherited from: \Report::getTruncatedColumnAlias()| Name | Type | Description |
|---|---|---|
| $column_name |

get_header_row(
$column_field_name
=
'display_columns', $skip_non_group
=
false, $exporting
=
false, $force_distinct
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $column_field_name | ||
| $skip_non_group | ||
| $exporting | ||
| $force_distinct |

get_header_row_generic(
$column_field_name
=
'display_columns', $skip_non_group
=
false, $exporting
=
false, $force_distinct
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $column_field_name | ||
| $skip_non_group | ||
| $exporting | ||
| $force_distinct |

get_next_child_row(
$result_name
)
:
void| Name | Type | Description |
|---|---|---|
| $result_name |

get_next_row(
$result_field_name
=
'result', $column_field_name
=
'display_columns', $skip_non_summary_columns
=
false, $exporting
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $result_field_name | ||
| $column_field_name | ||
| $skip_non_summary_columns | ||
| $exporting |

get_summary_total_row(
$exporting
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $exporting |

get_total_header_row(
$exporting
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $exporting |

isVisibleModule(
$related_module
)
:
void| Name | Type | Description |
|---|---|---|
| $related_module |

is_definition_valid(
)
:
boolWhether the report definition is valid (currently only column definitions are considered).
Inherited from: \Report::is_definition_valid()| Type | Description |
|---|---|
| bool |

is_group_column(
$display_column
)
:
void| Name | Type | Description |
|---|---|---|
| $display_column |

is_layout_def_valid(
array $layout_def
)
:
boolWhether specified layout definition is valid.
Inherited from: \Report::is_layout_def_valid()| Name | Type | Description |
|---|---|---|
| $layout_def | array |
| Type | Description |
|---|---|
| bool |

is_old_content(
$content
)
:
void| Name | Type | Description |
|---|---|---|
| $content |

parseLinkedField(
$fieldname
)
:
void| Name | Type | Description |
|---|---|---|
| $fieldname |

parseUIFiltersDef(
$filters_def_str, $panels_def_str
)
:
void| Name | Type | Description |
|---|---|---|
| $filters_def_str | ||
| $panels_def_str |

register_field_for_query(
$layout_def
)
:
void| Name | Type | Description |
|---|---|---|
| $layout_def |

run_query(
$do_group_by
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $do_group_by |

run_summary_combo_query(
$run_main_query
=
true
)
:
void| Name | Type | Description |
|---|---|---|
| $run_main_query |

save(
$report_name
)
:
void| Name | Type | Description |
|---|---|---|
| $report_name |

select_already_defined(
$select, $which
=
'select_fields'
)
:
void| Name | Type | Description |
|---|---|---|
| $select | ||
| $which |

wrapIfNull(
$field
)
:
void| Name | Type | Description |
|---|---|---|
| $field |