| Mantis Bug Tracker Developers Guide | ||
|---|---|---|
| <<< Previous | Event Reference | Next >>> |
EVENT_CUSTOM_FIELD_DEFS(DEFAULT)
This event allows plugins to define the appropriate type of custom fields.
<Array>: global $g_custom_field_types<string>: global $g_custom_field_type_definition<string>: global $g_custom_field_type_enum_string, $s_custom_field_type_enum_string
EVENT_CUSTOM_FIELD_SET_VALUE(FIRST)
This event allow the plugin to declare single database field from a custom field definition row form the field names ("name" and "type") and set it to the database.
Parameters
<Integer>: FIELD ID
<Integer>: BUG ID
<String>: mixed value
<Boolean>: boolean history logs for new values
Return Value
<Array>: True to exclude the plugin custom fields, null otherwise
EVENT_CUSTOM_FIELD_GET_VALUE(FIRST)
This event allows plugin to get the value of a custom field for the given bug.
Parameters
<Integer>: FIELD ID
<Integer>: BUG ID
Return value or Return Array
<Array>: If the plugin custom field is exist return the value else return null
EVENT_CUSTOM_FIELD_GPC_ISSET(FIRST)
This event allows plugin to check the right custom field type and the number of input.
Parameters
<String>: variable name
<Array>: Custom Field Types(defined plugin name)
Return value
<Boolean>: return true if it's plugin custom field defined name else null
EVENT_CUSTOM_FIELD_PRINT_INPUT(FIRST)
This event allows plugin to print input custom field from the plugin.
Parameters
<Array>: FIELD ID contains the definition of the custom field (including it's field id)
Return value
<Sring>: returns input value
EVENT_CUSTOM_FIELD_VALIDATE(FIRST)
This event allow plugin to validate the custom field value without setting it if not output error warning.
Parameters
<Integer>: Field ID
<String>: Value that was entered in the Custom Field
<Array>: Field Definition (row from custom_field_table)
Return True or False
<Boolean>: The validation is right return true or value is null or incorrect false
EVENT_CUSTOM_FIELD_GPC_GET(FIRST)
This allow plugin to retrieve an integer GPC variable. Uses gpc_get_int().the variable does not exist
Parameters
<Sting>: This pass the input value
<Integer>: This pass the plugin custom field type
<Array>: default (Optional)
Return value
<String>: It returns the current value of the input
| <<< Previous | Home | Next >>> |
| Output Modifier Events | Up | Bug Filter Events |