include/ListView/ListViewDisplay.php
\ListViewDisplay
- Children
- \ListViewSmarty
- \ListViewSmarty
- \ListViewXTPL
Properties
Methods

buildActionsLink(
string $id
=
'actions_link', $location
=
'top'
)
:
stringDisplay the actions link
| Name | Type | Description |
|---|---|---|
| $id | string | link id attribute, defaults to 'actions_link' |
| $location |
| Type | Description |
|---|---|
| string | HTML source |

buildComposeEmailLink(
$totalCount, $loc
=
'top'
)
:
stringBuilds the compose email link
| Name | Type | Description |
|---|---|---|
| $totalCount | ||
| $loc |
| Type | Description |
|---|---|
| string | HTML |

buildDeleteLink(
$loc
=
'top'
)
:
stringBuilds the delete link
| Name | Type | Description |
|---|---|---|
| $loc |
| Type | Description |
|---|---|
| string | HTML |

buildExportLink(
$loc
=
'top'
)
:
stringBuilds the export link
| Name | Type | Description |
|---|---|---|
| $loc |
| Type | Description |
|---|---|
| string | HTML |

buildMassUpdateLink(
$loc
=
'top'
)
:
stringBuilds the massupdate link
| Name | Type | Description |
|---|---|---|
| $loc |
| Type | Description |
|---|---|
| string | HTML |

buildMergeDuplicatesLink(
$loc
=
'top'
)
:
stringBuilds the mail merge link The link can be disabled by setting module level duplicate_merge property to false in the moudle's vardef file.
| Name | Type | Description |
|---|---|---|
| $loc |
| Type | Description |
|---|---|
| string | HTML |

buildMergeLink(
$modules_array
=
null, $loc
=
'top'
)
:
stringBuilds the mail merge link
| Name | Type | Description |
|---|---|---|
| $modules_array | ||
| $loc |
| Type | Description |
|---|---|
| string | HTML |

buildSelectLink(
\echo $id
=
'select_link', $total
=
0, $pageTotal
=
0, $location
=
"top"
)
:
stringDisplay the select link
| Name | Type | Description |
|---|---|---|
| $id | \echo | Bool set true if you want it echo'd, set false to have contents returned |
| $total | ||
| $pageTotal | ||
| $location |
| Type | Description |
|---|---|
| string | select link html |

buildSelectedObjectsSpan(
$echo
=
true, $total
=
0
)
:
stringDisplay the selected object span object
| Name | Type | Description |
|---|---|---|
| $echo | ||
| $total |
| Type | Description |
|---|---|
| string | select object span |

buildTargetList(
$loc
=
'top'
)
:
stringBuilds the add to target list link
| Name | Type | Description |
|---|---|---|
| $loc |
| Type | Description |
|---|---|
| string | HTML |

displayEnd(
)
:
stringDisplay the bottom of the ListView (ie MassUpdate
| Type | Description |
|---|---|
| string | contents |

getMultiSelectData(
)
:
stringDisplay the multi select data box etc.
| Type | Description |
|---|---|
| string | contents |

process(
\file $file, \data $data, \html_var $htmlVar
)
:
voidAny additional processing
| Name | Type | Description |
|---|---|---|
| $file | \file | File template file to use |
| $data | \data | array row data |
| $htmlVar | \html_var | string html string to be passed back and forth |

setup(
\seed $seed, \file $file, string $where, \offset:0 | \array:array() $params
=
array(), $offset
=
0, \int:-1 $limit
=
-1, \string[]:array() $filter_fields
=
array(), \string:'id' $id_field
=
'id'
)
:
voidSetup the class
| Name | Type | Description |
|---|---|---|
| $seed | \seed | SugarBean Seed SugarBean to use |
| $file | \file | File Template file to use |
| $where | string | |
| $params | \offset:0 | \array:array() | int offset to start at |
| $offset | ||
| $limit | \int:-1 | |
| $filter_fields | \string[]:array() | |
| $id_field | \string:'id' |

setupFilterFields(
$filter_fields
=
array()
)
:
void| Name | Type | Description |
|---|---|---|
| $filter_fields |