include/ListView/ListViewSmarty.php
\ListViewSmarty
- Parent(s)
- \ListViewDisplay
- Children
- \ListViewReports
- \PopupSmarty
- \ListViewPackages
Properties
$actionsMenuExtraItems= 'array()'
array()
Details- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$actionsMenuExtraItems
$listViewCounter= '0'
0
Details- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$listViewCounter
$mass= 'null'
null
Details- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$mass
$mergeDisplayColumns= 'false'
false
Details- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$mergeDisplayColumns
$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'
true
Details- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$should_process
$show_action_dropdown= 'true'
true
Details- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$show_action_dropdown
$show_mass_update_form= 'false'
false
Details- Type
- n/a
- Inherited_from
- \ListViewDisplay::$$show_mass_update_form
$show_plus= 'false'
false
Details- 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'
)
:
string
Builds 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
)
:
string
Display 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(
\end $end
=
true
)
:
string
Displays the xtpl, either echo or returning the contents
Name | Type | Description |
---|---|---|
$end | \end | bool display the ending of the listview data (ie MassUpdate) |
Type | Description |
---|---|
string | ListView contents |
displayEnd(
)
:
string
Display the bottom of the ListView (ie MassUpdate
Type | Description |
---|---|
string | contents |
getMassUpdate(
)
:
\MassUpdate
Type | Description |
---|---|
\MassUpdate | instance |
getMultiSelectData(
)
:
string
Display the multi select data box etc.
Inherited from: \ListViewDisplay::getMultiSelectData()Type | Description |
---|---|
string | contents |
process(
\file $file, \data $data, \html_var $htmlVar
)
:
void
Processes 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 |
$htmlVar | \html_var | string the corresponding html var in xtpl per row |
processArrows(
\ordering $ordering
)
:
void
Assigns 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 |