include/MassUpdate.php

Show: inherited
Table of Contents

\MassUpdate

Package: SugarCRM

MassUpdate class for updating multiple records at once

Api
 

Properties

Propertypublic  $sugarbean= 'null'
Default valuenullDetails
Type
n/a
Propertypublic  $where_clauses= ''''

where clauses used to filter rows that have to be updated

Default value''Details
Type
n/a

Methods

methodpublicaddAccountID( \displayname $displayname, \varname $varname, \id_name $id_name = '' ) : void

Add Account selection popup window HTML code

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$varname \varname

name of the variable

$id_name \id_name

name of the id in vardef

methodpublicaddAssignedUserID( \displayname $displayname, \varname $varname ) : void

Add AssignedUser popup window HTML code

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$varname \varname

name of the variable

methodpublicaddBool( \displayname $displayname, \varname $varname ) : void

Add Status selection popup window HTML code

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$varname \varname

name of the variable

methodpublicaddDate( \displayname $displayname, \varname $varname ) : void

Add Date selection popup window HTML code

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$varname \varname

name of the variable

methodpublicaddDatetime( \displayname $displayname, \varname $varname ) : void

Add Datetime selection popup window HTML code

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$varname \varname

name of the variable

methodprotectedaddDefault( string $displayname, string $field, bool $even ) : string

Have to be overridden in children

Parameters
Name Type Description
$displayname string

field label

$field string

field name

$even bool

even or odd

Returns
Type Description
string html field data
methodpublicaddGenericModuleID( \displayname $displayname, \varname $varname, \id_name $id_name = '', \mod_type $mod_type ) : void

Add a generic module popup selection popup window HTML code.

Currently supports Contact and Releases

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$varname \varname

name of the variable

$id_name \id_name

name of the id in vardef

$mod_type \mod_type

name of the module, either "Contact" or "Releases" currently

methodpublicaddInputType( \displayname $displayname, \field_name $varname ) : void

Add a generic input type='text' field

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$varname \field_name

name of the field

methodpublicaddParent( \displayname $displayname, \field_name $field ) : void

Add a parent selection popup window

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$field \field_name

name of the field

methodpublicaddRadioenum(  $displayname,  $varname,  $options ) : void

Parameters
Name Type Description
$displayname
$varname
$options
methodpublicaddRadioenumItem(  $name,  $value,  $output ) : void

Parameters
Name Type Description
$name
$value
$output
methodpublicaddStatus( \displayname $displayname, \varname $varname, \options $options ) : void

Add Status selection popup window HTML code

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$varname \varname

name of the variable

$options \options

array of options for status

methodpublicaddStatusMulti(  $displayname,  $varname,  $options ) : void

Parameters
Name Type Description
$displayname
$varname
$options
methodpublicaddTeamList( \displayname $displayname, \varname $field ) : void

Add Team selection popup window HTML code

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$field \varname

name of the variable

methodpublicaddUserName( \displayname $displayname, \varname $varname, \id_name $id_name = '', \mod_type $mod_type ) : void

Add a generic widget to lookup Users.

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$varname \varname

name of the variable

$id_name \id_name

name of the id in vardef

$mod_type \mod_type

name of the module, either "Contact" or "Releases" currently

methodpubliccheckClearField(  $field,  $value ) : void

Parameters
Name Type Description
$field
$value
methodpublicdate_to_dateTime(  $field,  $value ) : void

Parameters
Name Type Description
$field
$value
methodpublicdoMassUpdateFieldsExistForFocus( ) : bool

This is kinda a hack how it is implimented, but will tell us whether or not a focus has fields for Mass Update

Returns
Type Description
bool
methodpublicendMassUpdateForm( ) : void

Returns end of the massupdate form

methodpublicgenerateSearchWhere(  $module,  $query ) : void

Parameters
Name Type Description
$module
$query
methodpublicgetDisplayMassUpdateForm( bool $bool, \multi_select_popup $multi_select_popup = false ) : void

get the massupdate form

Parameters
Name Type Description
$bool bool

boolean need to execute the massupdate form or not

$multi_select_popup \multi_select_popup

booleanif it is a multi-select value

methodpublicgetFunctionValue(  $focus,  $vardef ) : void

Parameters
Name Type Description
$focus
$vardef
methodpublicgetMassUpdateForm(  $hideDeleteIfNoFieldsAvailable = false ) : void

Displays the massupdate form

Parameters
Name Type Description
$hideDeleteIfNoFieldsAvailable
methodpublicgetMassUpdateFormHeader( \multi_select_popup $multi_select_popup = false ) : void

returns the mass update's html form header

Parameters
Name Type Description
$multi_select_popup \multi_select_popup

boolean if it is a mult-select or not

methodprotectedgetSearchDefs(  $module,  $metafiles = array() ) : void

Parameters
Name Type Description
$module
$metafiles
methodprotectedgetSearchFields(  $module,  $metafiles = array() ) : void

Parameters
Name Type Description
$module
$metafiles
methodpublichandleMassUpdate( ) : void

Executes the massupdate form

methodpublichandleRelationship( \displayname $displayname, \field $field ) : void

Decides which popup HTML code is needed for mass updating

Parameters
Name Type Description
$displayname \displayname

Name to display in the popup window

$field \field

name of the field to update

methodpublicsetSugarBean( \sugar $sugar ) : void

set the sugar bean to its internal member

Parameters
Name Type Description
$sugar \sugar

bean reference

Documentation was generated by DocBlox 0.18.1.