include/ListView/ListViewXTPL.php
\ListViewXTPL
- Parent(s)
- \ListViewDisplay
Properties

$actionsMenuExtraItems= 'array()'
array()Details- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$actionsMenuExtraItems

$export= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$export

$listViewCounter= '0'
0Details- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$listViewCounter

$lvd= ''
- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$lvd

$mailMerge= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$mailMerge

$mass= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$mass

$mergeDisplayColumns= 'false'
falseDetails- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$mergeDisplayColumns

$moduleString= ''
- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$moduleString

$multiSelect= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$multiSelect

$multi_select_popup= ''
- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$multi_select_popup

$rowCount= ''
- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$rowCount

$seed= ''
- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$seed

$should_process= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$should_process

$show_action_dropdown= 'true'
trueDetails- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$show_action_dropdown

$show_mass_update_form= 'false'
falseDetails- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$show_mass_update_form

$show_plus= 'false'
falseDetails- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$show_plus
Methods

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

buildComposeEmailLink(
$totalCount, $loc
=
'top'
)
:
string
| Name | Type | Description |
|---|---|---|
| $totalCount | ||
| $loc |
| Type | Description |
|---|---|
| string | HTML |

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

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

buildMassUpdateLink(
$loc
=
'top'
)
:
string
| 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.
Inherited from: \ListViewDisplay::buildMergeDuplicatesLink()| Name | Type | Description |
|---|---|---|
| $loc |
| Type | Description |
|---|---|
| string | HTML |

buildMergeLink(
$modules_array
=
null, $loc
=
'top'
)
:
string
| Name | Type | Description |
|---|---|---|
| $modules_array | ||
| $loc |
| Type | Description |
|---|---|
| string | HTML |

buildSelectLink(
\echo $id
=
'select_link', $total
=
0, $pageTotal
=
0, $location
=
"top"
)
:
string
| 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
Inherited from: \ListViewDisplay::buildSelectedObjectsSpan()| Name | Type | Description |
|---|---|---|
| $echo | ||
| $total |
| Type | Description |
|---|---|
| string | select object span |

buildTargetList(
$loc
=
'top'
)
:
string
| Name | Type | Description |
|---|---|---|
| $loc |
| Type | Description |
|---|---|
| string | HTML |

display(
\echo $echo
=
true
)
:
stringDisplays the xtpl, either echo or returning the contents
| Name | Type | Description |
|---|---|---|
| $echo | \echo | bool echo or return contents |
| Type | Description |
|---|---|
| string | ListView contents |

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

getMassUpdate(
)
:
\MassUpdate| Type | Description |
|---|---|
| \MassUpdate | instance |

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

process(
\file $file, \data $data, \html_var $html_var
)
:
voidProcesses the request. Calls ListViewData process. Also assigns all lang strings, export links, This is called from ListViewDisplay
| Name | Type | Description |
|---|---|---|
| $file | \file | file Template file to use |
| $data | \data | array from ListViewData |
| $html_var | \html_var | string the corresponding html var in xtpl per row |

processArrows(
\ordering $ordering
)
:
voidAssigns the sort arrows in the tpl
| Name | Type | Description |
|---|---|---|
| $ordering | \ordering | array data that contains the ordering info |

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'
)
:
void
| 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 |

shouldProcess(
$moduleDir
)
:
void| Name | Type | Description |
|---|---|---|
| $moduleDir |