include/ListView/ListViewSmarty.php

Show: inherited
Table of Contents

\ListViewSmarty

Package:
Parent(s)
\ListViewDisplay
Children
\ListViewReports
\PopupSmarty
\ListViewPackages

Properties

Propertypublic  $actionsMenuExtraItems= 'array()'
Default valuearray()Details
Type
n/a
Inherited_from
\ListViewDisplay::$$actionsMenuExtraItems  
Propertypublic  $contextMenus= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $data= ''
Details
Type
n/a
Propertypublic  $delete= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $displayColumns= ''
Details
Type
n/a
Propertypublic  $email= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $export= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $listViewCounter= '0'
staticinheritedInherited from: \ListViewDisplay::$$listViewCounter
Default value0Details
Type
n/a
Inherited_from
\ListViewDisplay::$$listViewCounter  
Propertypublic  $lvd= ''
Details
Type
n/a
Propertypublic  $mailMerge= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $mass= 'null'
inheritedInherited from: \ListViewDisplay::$$mass
Default valuenullDetails
Type
n/a
Inherited_from
\ListViewDisplay::$$mass  
Propertypublic  $menu_location= ''top''
Default value'top'Details
Type
n/a
Propertypublic  $mergeDisplayColumns= 'false'
inheritedInherited from: \ListViewDisplay::$$mergeDisplayColumns
Default valuefalseDetails
Type
n/a
Inherited_from
\ListViewDisplay::$$mergeDisplayColumns  
Propertypublic  $mergeduplicates= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $moduleString= ''
Details
Type
n/a
Propertypublic  $multiSelect= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $multi_select_popup= ''
inheritedInherited from: \ListViewDisplay::$$multi_select_popup
Details
Type
n/a
Inherited_from
\ListViewDisplay::$$multi_select_popup  
Propertypublic  $quickViewLinks= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $rowCount= ''
inheritedInherited from: \ListViewDisplay::$$rowCount
Details
Type
n/a
Inherited_from
\ListViewDisplay::$$rowCount  
Propertypublic  $searchColumns= ''
Details
Type
n/a
Propertypublic  $seed= ''
inheritedInherited from: \ListViewDisplay::$$seed
Details
Type
n/a
Inherited_from
\ListViewDisplay::$$seed  
Propertypublic  $select= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $should_process= 'true'
inheritedInherited from: \ListViewDisplay::$$should_process
Default valuetrueDetails
Type
n/a
Inherited_from
\ListViewDisplay::$$should_process  
Propertypublic  $showMassupdateFields= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $show_action_dropdown= 'true'
inheritedInherited from: \ListViewDisplay::$$show_action_dropdown
Default valuetrueDetails
Type
n/a
Inherited_from
\ListViewDisplay::$$show_action_dropdown  
Propertypublic  $show_mass_update_form= 'false'
Default valuefalseDetails
Type
n/a
Inherited_from
\ListViewDisplay::$$show_mass_update_form  
Propertypublic  $show_plus= 'false'
inheritedInherited from: \ListViewDisplay::$$show_plus
Default valuefalseDetails
Type
n/a
Inherited_from
\ListViewDisplay::$$show_plus  
Propertypublic  $ss= ''
Details
Type
n/a
Propertypublic  $targetList= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $tpl= ''
Details
Type
n/a

Methods

methodpublicListViewDisplay( ) : null
inherited

Constructor

Inherited from: \ListViewDisplay::ListViewDisplay()
Returns
Type Description
null
methodpublicListViewSmarty( ) : void

Constructor, Smarty object immediately available after

methodprotectedbuildActionsLink( string $id = 'actions_link',  $location = 'top' ) : string
inherited

Display the actions link

Inherited from: \ListViewDisplay::buildActionsLink()
Parameters
Name Type Description
$id string

link id attribute, defaults to 'actions_link'

$location
Returns
Type Description
string HTML source
methodprotectedbuildComposeEmailLink(  $totalCount,  $loc = 'top' ) : string
inherited

Builds the compose email link

Inherited from: \ListViewDisplay::buildComposeEmailLink()
Parameters
Name Type Description
$totalCount
$loc
Returns
Type Description
string HTML
methodprotectedbuildDeleteLink(  $loc = 'top' ) : string
inherited

Builds the delete link

Inherited from: \ListViewDisplay::buildDeleteLink()
Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodprotectedbuildExportLink(  $loc = 'top' ) : string
inherited

Builds the export link

Inherited from: \ListViewDisplay::buildExportLink()
Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodprotectedbuildMassUpdateLink(  $loc = 'top' ) : string
inherited

Builds the massupdate link

Inherited from: \ListViewDisplay::buildMassUpdateLink()
Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodprotectedbuildMergeDuplicatesLink(  $loc = 'top' ) : string
inherited

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()
Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodprotectedbuildMergeLink(  $modules_array = null,  $loc = 'top' ) : string
inherited

Builds the mail merge link

Inherited from: \ListViewDisplay::buildMergeLink()
Parameters
Name Type Description
$modules_array
$loc
Returns
Type Description
string HTML
methodpublicbuildSelectLink( \echo $id = 'select_link',  $total = 0,  $pageTotal = 0,  $location = "top" ) : string
inherited

Display the select link

Inherited from: \ListViewDisplay::buildSelectLink()
Parameters
Name Type Description
$id \echo

Bool set true if you want it echo'd, set false to have contents returned

$total
$pageTotal
$location
Returns
Type Description
string select link html
methodpublicbuildSelectedObjectsSpan(  $echo = true,  $total = 0 ) : string
inherited

Display the selected object span object

Inherited from: \ListViewDisplay::buildSelectedObjectsSpan()
Parameters
Name Type Description
$echo
$total
Returns
Type Description
string select object span
methodprotectedbuildTargetList(  $loc = 'top' ) : string
inherited

Builds the add to target list link

Inherited from: \ListViewDisplay::buildTargetList()
Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodpublicdisplay( \end $end = true ) : string

Displays the xtpl, either echo or returning the contents

Parameters
Name Type Description
$end \end

bool display the ending of the listview data (ie MassUpdate)

Returns
Type Description
string ListView contents
methodpublicdisplayEnd( ) : string

Display the bottom of the ListView (ie MassUpdate

Returns
Type Description
string contents
methodprotectedgetMassUpdate( ) : \MassUpdate
inherited

Inherited from: \ListViewDisplay::getMassUpdate()
Returns
Type Description
\MassUpdate instance
methodpublicgetMultiSelectData( ) : string
inherited

Display the multi select data box etc.

Inherited from: \ListViewDisplay::getMultiSelectData()
Returns
Type Description
string contents
methodpublicprocess( \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

Parameters
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

methodpublicprocessArrows( \ordering $ordering ) : void

Assigns the sort arrows in the tpl

Parameters
Name Type Description
$ordering \ordering

array data that contains the ordering info

methodpublicsetup( \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
inherited

Setup the class

Inherited from: \ListViewDisplay::setup()
Parameters
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'
methodpublicsetupFilterFields(  $filter_fields = array() ) : void
inherited

Inherited from: \ListViewDisplay::setupFilterFields()
Parameters
Name Type Description
$filter_fields
methodpublicshouldProcess(  $moduleDir ) : void
inherited

Inherited from: \ListViewDisplay::shouldProcess()
Parameters
Name Type Description
$moduleDir
Documentation was generated by DocBlox 0.18.1.