class CRM_Activity_BAO_ActivityType

This class is a wrapper that moves some boilerplate code out of the Form class and helps remove some ambiguity with name and label.

Properties

protected array $_activityType key/value pair for this activity type

Methods

__construct($activity_type_id)

Constructor

array
getActivityType()

Get the key/value pair representing this activity type.

setActivityType($activity_type_id)

Look up the key/value pair representing this activity type from the id.

Details

at line 58
__construct($activity_type_id)

Constructor

Parameters

$activity_type_id int This matches up to the option_value 'value' column in the database.

at line 68
array getActivityType()

Get the key/value pair representing this activity type.

Return Value

array

See also

$this->_activityType

at line 78
setActivityType($activity_type_id)

Look up the key/value pair representing this activity type from the id.

Generally called from constructor.

Parameters

$activity_type_id int This matches up to the option_value 'value' column in the database.