modules/Reports/Report.php

Show: inherited
Table of Contents

\Report

Package:
Children
\SubpanelFromReports

Properties

Propertypublic  $addedColumns= '0'
Default value0Details
Type
n/a
Propertypublic  $alias_lookup= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $all_fields= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $chart_description= ''''
Default value''Details
Type
n/a
Propertypublic  $chart_group_position= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $chart_header_row= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $chart_numerical_position= '0'
Default value0Details
Type
n/a
Propertypublic  $chart_rows= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $chart_total_header_row= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $chart_type= ''vBarF''
Default value'vBarF'Details
Type
n/a
Propertypublic  $currency_obj= ''
Details
Type
n/a
Propertypublic  $currency_symbol= ''
Details
Type
n/a
Propertypublic  $current_summary_row_count= '0'
Default value0Details
Type
n/a
Propertypublic  $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":""}''
Default value'{"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
Propertypublic  $do_chart= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $do_export= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $enable_paging= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $focus= ''
Details
Type
n/a
Propertypublic  $full_table_beans= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $full_table_list= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $group_by= ''
Details
Type
n/a
Propertypublic  $group_column_is_invisible= '0'
Default value0Details
Type
n/a
Propertypublic  $group_defs_Info= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $group_fields_map= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $group_header= ''
Details
Type
n/a
Propertypublic  $group_order_by= ''''
Default value''Details
Type
n/a
Propertypublicarray  $invalid_fields= 'array()'

Array of invalid report fields. Populated during is_definition_valid() call.

Default valuearray()Details
Type
array
Propertypublic  $is_saved_report= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $jtcount= '0'
Default value0Details
Type
n/a
Propertypublic  $layout_manager= 'null'
Default valuenullDetails
Type
n/a
Propertypublic  $loaded_links= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $module= ''Accounts''
Default value'Accounts'Details
Type
n/a
Propertypublic  $module_dir= ''Reports''
Default value'Reports'Details
Type
n/a
Propertypublic  $name= ''
Details
Type
n/a
Propertypublic  $obj_array= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $order_by= ''
Details
Type
n/a
Propertypublic  $order_by_arr= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $order_by_special= ''
Details
Type
n/a
Propertypublic  $plain_text_output= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $query= ''''
Default value''Details
Type
n/a
Propertypublic  $query_list= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $relationships= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $report_def= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $report_type= ''tabular''
Default value'tabular'Details
Type
n/a
Propertypublic  $requested_fields_map= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $result= ''
Details
Type
n/a
Propertypublic  $row_count= '0'
Default value0Details
Type
n/a
Propertypublic  $row_end= '0'
Default value0Details
Type
n/a
Propertypublic  $row_start= '0'
Default value0Details
Type
n/a
Propertypublic  $saved_report= 'null'
Default valuenullDetails
Type
n/a
Propertypublic  $saved_report_id= ''''
Default value''Details
Type
n/a
Propertypublic  $select_already_defined_hash= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $select_fields= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $selected_loaded_custom_links= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $selected_loaded_links= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $show_columns= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $summary_fields_map= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $summary_order_by_arr= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $summary_query= ''''
Default value''Details
Type
n/a
Propertypublic  $summary_result= ''
Details
Type
n/a
Propertypublic  $summary_row_count= '0'
Default value0Details
Type
n/a
Propertypublic  $summary_row_end= '0'
Default value0Details
Type
n/a
Propertypublic  $summary_row_start= '0'
Default value0Details
Type
n/a
Propertypublic  $summary_select_fields= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $table_name= ''saved_reports''
Default value'saved_reports'Details
Type
n/a
Propertypublic  $time_date_obj= 'null'
Default valuenullDetails
Type
n/a
Propertypublic  $total_query= ''''
Default value''Details
Type
n/a
Propertypublic  $total_result= ''
Details
Type
n/a
Propertypublic  $total_select_fields= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $upgrade_lookup= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $where= ''
Details
Type
n/a

Methods

methodpublicReport(  $report_def_str = '',  $filters_def_str = '',  $panels_def_str = '' ) : void

Parameters
Name Type Description
$report_def_str
$filters_def_str
$panels_def_str
methodpublic_check_user_permissions( ) : void

methodpublic_get_full_key(  $layout_def ) : void

Parameters
Name Type Description
$layout_def
methodpublic_load_all_fields( ) : void

methodpublic_load_currency( ) : void

methodpubliccache_modules_def_js( ) : void

methodprotectedcleanLabels( ) : void

Ensure that report labels do not have HTML inside

methodpublicclean_report_def( ) : void

methodpublicclear_group_by( ) : void

methodpublicclear_results( ) : void

methodpubliccreateFilterStringForUI( ) : void

methodpubliccreate_from( ) : void

methodpubliccreate_group_by(  $register_group_by = true ) : void

Parameters
Name Type Description
$register_group_by
methodpubliccreate_order_by( ) : void

methodpubliccreate_query(  $query_name = 'query',  $field_list_name = 'select_fields' ) : void

Parameters
Name Type Description
$query_name
$field_list_name
methodpubliccreate_select(  $key = 'display_columns',  $field_list_name = 'select_fields' ) : void

Parameters
Name Type Description
$key
$field_list_name
methodpubliccreate_summary_query( ) : void

methodpubliccreate_summary_select( ) : void

methodpubliccreate_total_query( ) : void

methodpubliccreate_total_select( ) : void

methodpubliccreate_where( ) : void

methodpublicexecute_count_query(  $query_name = 'query' ) : void

Parameters
Name Type Description
$query_name
methodpublicexecute_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

Parameters
Name Type Description
$query_name
$result_name
$row_count_name
$row_start_name
$row_end_name
$limit
methodpublicexecute_summary_query( ) : void

methodpublicexecute_total_query( ) : void

methodpublicfiltersIterate(  $filters,  $where_clause ) : void

Parameters
Name Type Description
$filters
$where_clause
methodpublicfiltersIterateForUI(  $filters,  $verdef_arr_for_filters ) : void

Parameters
Name Type Description
$filters
$verdef_arr_for_filters
methodpublicfixReportDefs( ) : void

Bug #52757 Tries to find missed relations and removes them from full_table_list

methodprotectedgetColumnFieldName( array $display_column ) : string

Get data field name for the display column

Parameters
Name Type Description
$display_column array
Returns
Type Description
string
methodpublicgetDataTypeForColumnsForMatrix(  $column_field_name = 'summary_columns' ) : void

Parameters
Name Type Description
$column_field_name
methodprivategetExt2FieldDefSelectPiece( \$field_def $field_def, \$add_alias $add_alias = true ) : void

getExt2FieldDefSelectPiece

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

Parameters
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)

methodpublicgetFieldDefFromLayoutDef(  $layout_def ) : void

Parameters
Name Type Description
$layout_def
methodpublicgetModules(  $report_def ) : void

Parameters
Name Type Description
$report_def
methodpublicgetRelatedAliasName(  $linked_field ) : void

Parameters
Name Type Description
$linked_field
methodpublicgetRelatedLinkAliasName(  $linked_field ) : void

Parameters
Name Type Description
$linked_field
methodpublicgetTableFromField(  $layout_def ) : void

Parameters
Name Type Description
$layout_def
methodprivategetTruncatedColumnAlias(  $column_name ) : void

getTruncatedColumnAlias 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.

Parameters
Name Type Description
$column_name
methodpublicget_header_row(  $column_field_name = 'display_columns',  $skip_non_group = false,  $exporting = false,  $force_distinct = false ) : void

Parameters
Name Type Description
$column_field_name
$skip_non_group
$exporting
$force_distinct
methodpublicget_header_row_generic(  $column_field_name = 'display_columns',  $skip_non_group = false,  $exporting = false,  $force_distinct = false ) : void

Parameters
Name Type Description
$column_field_name
$skip_non_group
$exporting
$force_distinct
methodpublicget_invalid_fields( ) : array

Get report invalid fields.

Returns
Type Description
array
methodpublicget_next_child_row(  $result_name ) : void

Parameters
Name Type Description
$result_name
methodpublicget_next_row(  $result_field_name = 'result',  $column_field_name = 'display_columns',  $skip_non_summary_columns = false,  $exporting = false ) : void

Parameters
Name Type Description
$result_field_name
$column_field_name
$skip_non_summary_columns
$exporting
methodpublicget_summary_header_row( ) : void

methodpublicget_summary_next_row( ) : void

methodpublicget_summary_total_row(  $exporting = false ) : void

Parameters
Name Type Description
$exporting
methodpublicget_total_header_row(  $exporting = false ) : void

Parameters
Name Type Description
$exporting
methodpublichas_summary_columns( ) : void

methodpublicisVisibleModule(  $related_module ) : void

Parameters
Name Type Description
$related_module
methodpublicis_definition_valid( ) : bool

Whether the report definition is valid (currently only column definitions are considered).

Returns
Type Description
bool
methodpublicis_group_column(  $display_column ) : void

Parameters
Name Type Description
$display_column
methodpublicis_layout_def_valid( array $layout_def ) : bool

Whether specified layout definition is valid.

Parameters
Name Type Description
$layout_def array
Returns
Type Description
bool
methodpublicis_old_content(  $content ) : void

Parameters
Name Type Description
$content
methodpublicparseLinkedField(  $fieldname ) : void

Parameters
Name Type Description
$fieldname
methodpublicparseUIFiltersDef(  $filters_def_str,  $panels_def_str ) : void

Parameters
Name Type Description
$filters_def_str
$panels_def_str
methodpublicregister_field_for_query(  $layout_def ) : void

Parameters
Name Type Description
$layout_def
methodpublicrun_chart_queries( ) : void

methodpublicrun_query(  $do_group_by = false ) : void

Parameters
Name Type Description
$do_group_by
methodpublicrun_summary_child_query( ) : void

methodpublicrun_summary_combo_query(  $run_main_query = true ) : void

Parameters
Name Type Description
$run_main_query
methodpublicrun_summary_query( ) : void

methodpublicrun_total_query( ) : void

methodpublicsave(  $report_name ) : void

Parameters
Name Type Description
$report_name
methodpublicselect_already_defined(  $select,  $which = 'select_fields' ) : void

Parameters
Name Type Description
$select
$which
methodprotectedwrapIfNull(  $field ) : void

Parameters
Name Type Description
$field
Documentation was generated by DocBlox 0.18.1.