include/MassUpdate.php
\MassUpdate
MassUpdate class for updating multiple records at once
- Api
Properties
Methods
addAccountID(
\displayname $displayname, \varname $varname, \id_name $id_name
=
''
)
:
void
Add Account selection popup window HTML code
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 |
addAssignedUserID(
\displayname $displayname, \varname $varname
)
:
void
Add AssignedUser popup window HTML code
Name | Type | Description |
---|---|---|
$displayname | \displayname | Name to display in the popup window |
$varname | \varname | name of the variable |
addBool(
\displayname $displayname, \varname $varname
)
:
void
Add Status selection popup window HTML code
Name | Type | Description |
---|---|---|
$displayname | \displayname | Name to display in the popup window |
$varname | \varname | name of the variable |
addDate(
\displayname $displayname, \varname $varname
)
:
void
Add Date selection popup window HTML code
Name | Type | Description |
---|---|---|
$displayname | \displayname | Name to display in the popup window |
$varname | \varname | name of the variable |
addDatetime(
\displayname $displayname, \varname $varname
)
:
void
Add Datetime selection popup window HTML code
Name | Type | Description |
---|---|---|
$displayname | \displayname | Name to display in the popup window |
$varname | \varname | name of the variable |
addDefault(
string $displayname, string $field, bool $even
)
:
string
Have to be overridden in children
Name | Type | Description |
---|---|---|
$displayname | string | field label |
$field | string | field name |
$even | bool | even or odd |
Type | Description |
---|---|
string | html field data |
addGenericModuleID(
\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
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 |
addInputType(
\displayname $displayname, \field_name $varname
)
:
void
Add a generic input type='text' field
Name | Type | Description |
---|---|---|
$displayname | \displayname | Name to display in the popup window |
$varname | \field_name | name of the field |
addParent(
\displayname $displayname, \field_name $field
)
:
void
Add a parent selection popup window
Name | Type | Description |
---|---|---|
$displayname | \displayname | Name to display in the popup window |
$field | \field_name | name of the field |
addRadioenum(
$displayname, $varname, $options
)
:
void
Name | Type | Description |
---|---|---|
$displayname | ||
$varname | ||
$options |
addRadioenumItem(
$name, $value, $output
)
:
void
Name | Type | Description |
---|---|---|
$name | ||
$value | ||
$output |
addStatus(
\displayname $displayname, \varname $varname, \options $options
)
:
void
Add Status selection popup window HTML code
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 |
addStatusMulti(
$displayname, $varname, $options
)
:
void
Name | Type | Description |
---|---|---|
$displayname | ||
$varname | ||
$options |
addTeamList(
\displayname $displayname, \varname $field
)
:
void
Add Team selection popup window HTML code
Name | Type | Description |
---|---|---|
$displayname | \displayname | Name to display in the popup window |
$field | \varname | name of the variable |
addUserName(
\displayname $displayname, \varname $varname, \id_name $id_name
=
'', \mod_type $mod_type
)
:
void
Add a generic widget to lookup Users.
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 |
doMassUpdateFieldsExistForFocus(
)
:
bool
This is kinda a hack how it is implimented, but will tell us whether or not a focus has fields for Mass Update
Type | Description |
---|---|
bool |
getDisplayMassUpdateForm(
bool $bool, \multi_select_popup $multi_select_popup
=
false
)
:
void
get the massupdate form
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 |
getMassUpdateForm(
$hideDeleteIfNoFieldsAvailable
=
false
)
:
void
Displays the massupdate form
Name | Type | Description |
---|---|---|
$hideDeleteIfNoFieldsAvailable |
getMassUpdateFormHeader(
\multi_select_popup $multi_select_popup
=
false
)
:
void
returns the mass update's html form header
Name | Type | Description |
---|---|---|
$multi_select_popup | \multi_select_popup | boolean if it is a mult-select or not |
getSearchDefs(
$module, $metafiles
=
array()
)
:
void
Name | Type | Description |
---|---|---|
$module | ||
$metafiles |
getSearchFields(
$module, $metafiles
=
array()
)
:
void
Name | Type | Description |
---|---|---|
$module | ||
$metafiles |
handleRelationship(
\displayname $displayname, \field $field
)
:
void
Decides which popup HTML code is needed for mass updating
Name | Type | Description |
---|---|---|
$displayname | \displayname | Name to display in the popup window |
$field | \field | name of the field to update |