include/ListView/ListViewDisplay.php

Show: inherited
Table of Contents

\ListViewDisplay

Package:
Children
\ListViewSmarty
\ListViewXTPL

Properties

Propertypublic  $actionsMenuExtraItems= 'array()'
Default valuearray()Details
Type
n/a
Propertypublic  $export= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $listViewCounter= '0'
static
Default value0Details
Type
n/a
Propertypublic  $lvd= ''
Details
Type
n/a
Propertypublic  $mailMerge= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $mass= 'null'
Default valuenullDetails
Type
n/a
Propertypublic  $mergeDisplayColumns= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $moduleString= ''
Details
Type
n/a
Propertypublic  $multiSelect= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $multi_select_popup= ''
Details
Type
n/a
Propertypublic  $rowCount= ''
Details
Type
n/a
Propertypublic  $seed= ''
Details
Type
n/a
Propertypublic  $should_process= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $show_action_dropdown= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $show_mass_update_form= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $show_plus= 'false'
Default valuefalseDetails
Type
n/a

Methods

methodpublicListViewDisplay( ) : null

Constructor

Returns
Type Description
null
methodprotectedbuildActionsLink( string $id = 'actions_link',  $location = 'top' ) : string

Display the actions link

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

Builds the compose email link

Parameters
Name Type Description
$totalCount
$loc
Returns
Type Description
string HTML
methodprotectedbuildDeleteLink(  $loc = 'top' ) : string

Builds the delete link

Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodprotectedbuildExportLink(  $loc = 'top' ) : string

Builds the export link

Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodprotectedbuildMassUpdateLink(  $loc = 'top' ) : string

Builds the massupdate link

Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodprotectedbuildMergeDuplicatesLink(  $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.

Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodprotectedbuildMergeLink(  $modules_array = null,  $loc = 'top' ) : string

Builds the mail merge link

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

Display the select link

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

Display the selected object span object

Parameters
Name Type Description
$echo
$total
Returns
Type Description
string select object span
methodprotectedbuildTargetList(  $loc = 'top' ) : string

Builds the add to target list link

Parameters
Name Type Description
$loc
Returns
Type Description
string HTML
methodpublicdisplay( ) : string

Display the listview

Returns
Type Description
string ListView contents
methodpublicdisplayEnd( ) : string

Display the bottom of the ListView (ie MassUpdate

Returns
Type Description
string contents
methodprotectedgetMassUpdate( ) : \MassUpdate

Returns
Type Description
\MassUpdate instance
methodpublicgetMultiSelectData( ) : string

Display the multi select data box etc.

Returns
Type Description
string contents
methodpublicprocess( \file $file, \data $data, \html_var $htmlVar ) : void

Any additional processing

Parameters
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

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

Setup the class

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

Parameters
Name Type Description
$filter_fields
methodpublicshouldProcess(  $moduleDir ) : void

Parameters
Name Type Description
$moduleDir
Documentation was generated by DocBlox 0.18.1.