CRM_Activity_BAO_ActivityType
in package
This class is a wrapper that moves some boilerplate code out of the Form class and helps remove some ambiguity with name and label.
Table of Contents
Properties
- $_activityType : array<string|int, mixed>
- key/value pair for this activity type
Methods
- __construct() : mixed
- Constructor
- getActivityType() : array<string|int, mixed>
- Get the key/value pair representing this activity type.
- setActivityType() : mixed
- Look up the key/value pair representing this activity type from the id.
Properties
$_activityType
key/value pair for this activity type
protected
array<string|int, mixed>
$_activityType
= ['machineName' => \NULL, 'displayLabel' => \NULL, 'id' => \NULL]
machineName The internal name for lookups - matches up to option_value 'name' column in the database displayLabel The label used for display/output - matches up to option_value 'label' column in the database id The value used to initialize this object - matches up to the option_value 'value' column in the database
Methods
__construct()
Constructor
public
__construct(int $activity_type_id) : mixed
Parameters
- $activity_type_id : int
-
This matches up to the option_value 'value' column in the database.
getActivityType()
Get the key/value pair representing this activity type.
public
getActivityType() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>setActivityType()
Look up the key/value pair representing this activity type from the id.
public
setActivityType(int $activity_type_id) : mixed
Generally called from constructor.
Parameters
- $activity_type_id : int
-
This matches up to the option_value 'value' column in the database.