include/ListView/ListView.php
\ListView
Package: SugarCRM
ListView - list of many objects
- Children
- \ReportListView
- \DetailView
- Api
Properties
Methods

calculateSortOrder(
array $sortOrderList
)
:
stringhelper method to determine sort order by priority of source 1. explicit in request object 2. in session variable 3. subpaneldefs metadata 4. default 'asc'
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $sortOrderList | array |
|
| Type | Description |
|---|---|
| string | 'asc' | 'desc' |

getLocalSessionVariable(
$localVarName, $varName
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $localVarName | ||
| $varName |

getOrderBy(
$varName, $defaultOrderBy
=
'', $force_sortorder
=
''
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $varName | ||
| $defaultOrderBy | ||
| $force_sortorder |

getSessionVariable(
$localVarName, $varName
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $localVarName | ||
| $varName |

getSessionVariableName(
\unknown $localVarName, \unknown $varName
)
:
void
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $localVarName | \unknown | |
| $varName | \unknown |
- Desc
- INTERNAL FUNCTION returns the session/query variable name Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights Reserved. Contributor(s): ______________________________________..

getUserVariable(
$localVarName, $varName
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $localVarName | ||
| $varName |

initNewXTemplate(
$XTemplatePath, $modString, $imagePath
=
null
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $XTemplatePath | ||
| $modString | ||
| $imagePath |

loadListFieldDefs(
$subpanel_fields, $child_focus
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $subpanel_fields | ||
| $child_focus |

processListNavigation(
$xtemplateSection, \unknown $html_varName, $current_offset, $next_offset, $previous_offset, $row_count, $sugarbean
=
null, $subpanel_def
=
null, $col_count
=
20
)
:
void
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $xtemplateSection | ||
| $html_varName | \unknown | |
| $current_offset | ||
| $next_offset | ||
| $previous_offset | ||
| $row_count | ||
| $sugarbean | ||
| $subpanel_def | ||
| $col_count |
- Desc
- INTERNAL FUNCTION process the List Navigation Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights Reserved. Contributor(s): ______________________________________..

processListRows(
\unknown $data, $xtemplateSection, \unknown $html_varName
)
:
void
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $data | \unknown | |
| $xtemplateSection | ||
| $html_varName | \unknown |
- Desc
- INTERNAL FUNCTION handles the rows Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. All Rights Reserved. Contributor(s): ______________________________________..

processListView(
$seed, $xTemplateSection, $html_varName
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $seed | ||
| $xTemplateSection | ||
| $html_varName |

processListViewMulti(
$seed, $xTemplateSection, $html_varName
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $seed | ||
| $xTemplateSection | ||
| $html_varName |

processListViewTwo(
\unknown $seed, \unknown $xTemplateSection, \unknown $html_varName
)
:
void
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $seed | \unknown | |
| $xTemplateSection | \unknown | |
| $html_varName | \unknown |
- Desc
- PUBLIC FUNCTION Handles List Views using seeds that extend SugarBean $XTemplateSection is the section in the XTemplate file that should be parsed usually main $html_VarName is the variable name used in the XTemplateFile e.g. TASK $seed is a seed there are two types of seeds one is a subclass of SugarBean, the other is a list usually created from a sugar bean using get_list if no XTemplate is set it will create a new XTemplate Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.. All Rights Reserved.. Contributor(s): ______________________________________..

processSugarBean(
$xtemplateSection, \unknown $html_varName, \unknown $seed
)
:
void
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $xtemplateSection | ||
| $html_varName | \unknown | |
| $seed | \unknown |
- Desc
- INTERNAL FUNCTION Handles List Views using seeds that extend SugarBean $XTemplateSection is the section in the XTemplate file that should be parsed usually main $html_VarName is the variable name used in the XTemplateFile e.g. TASK $seed is a seed that extends SugarBean Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.. All Rights Reserved.. Contributor(s): ______________________________________..

processUnionBeans(
$sugarbean, $subpanel_def, $html_var
=
'CELL'
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $sugarbean | ||
| $subpanel_def | ||
| $html_var |

process_dynamic_listview(
$source_module, $sugarbean, $subpanel_def
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $source_module | ||
| $sugarbean | ||
| $subpanel_def |

process_dynamic_listview_header(
$source_module, $subpanel_def, $html_var
=
'CELL'
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $source_module | ||
| $subpanel_def | ||
| $html_var |

process_dynamic_listview_rows(
\unknown $data, $parent_data, $xtemplateSection, \unknown $html_varName, $subpanel_def
)
:
void
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $data | \unknown | |
| $parent_data | ||
| $xtemplateSection | ||
| $html_varName | \unknown | |
| $subpanel_def |
- Desc
- INTERNAL FUNCTION handles the rows

setAdditionalDetails(
$value
=
true, $function
=
''
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $value | ||
| $function |

setLocalSessionVariable(
$localVarName, $varName, $value
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $localVarName | ||
| $varName | ||
| $value |

setQuery(
$where, $limit, $orderBy, $varName, $allowOrderByOveride
=
true
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $where | ||
| $limit | ||
| $orderBy | ||
| $varName | ||
| $allowOrderByOveride |

setSessionVariable(
$localVarName, $varName, $value
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $localVarName | ||
| $varName | ||
| $value |

setUserVariable(
$localVarName, $varName, $value
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $localVarName | ||
| $varName | ||
| $value |