include/MassUpdate.php
\MassUpdate
MassUpdate class for updating multiple records at once
- Api
Properties
Methods

addAccountID(
\displayname $displayname, \varname $varname, \id_name $id_name
=
''
)
:
voidAdd 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
)
:
voidAdd 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
)
:
voidAdd 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
)
:
voidAdd 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
)
:
voidAdd 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
)
:
stringHave 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
)
:
voidAdd 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
)
:
voidAdd 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
)
:
voidAdd 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
)
:
voidAdd 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
)
:
voidAdd 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
)
:
voidAdd 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(
)
:
boolThis 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
)
:
voidget 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
)
:
voidDisplays the massupdate form
| Name | Type | Description |
|---|---|---|
| $hideDeleteIfNoFieldsAvailable |

getMassUpdateFormHeader(
\multi_select_popup $multi_select_popup
=
false
)
:
voidreturns 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
)
:
voidDecides 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 |