class message_data_type_message_instance in Message 6
Defines the message instance data type.
Hierarchy
- class \rules_data_type
Expanded class hierarchy of message_data_type_message_instance
1 string reference to 'message_data_type_message_instance'
- message_rules_data_type_info in includes/
message.rules.inc - Implementation of hook_rules_data_type_info().
File
- includes/
message.rules.inc, line 58 - Rules integration for the Message module.
View source
class message_data_type_message_instance extends rules_data_type {
function load($iid) {
return message_instance_load($iid);
}
function save() {
$message_instance =& $this
->get();
message_instance_save($message_instance);
return TRUE;
}
function get_identifier() {
$message_instance =& $this
->get();
return $message_instance->iid;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
message_data_type_message_instance:: |
function |
Gets the identifier of this data, which can be of every php data type - even an array.
Implement it, if your data type is identifiable. Overrides rules_data_type:: |
||
message_data_type_message_instance:: |
function |
Loads the data identified with an identifier as returned by get_identifier().
Just return the data or FALSE if loading the data failed. Overrides rules_data_type:: |
||
message_data_type_message_instance:: |
function |
Makes changes to the data permanent.
Implement it, if your data type is savable. Overrides rules_data_type:: |
||
rules_data_type:: |
property | |||
rules_data_type:: |
property | |||
rules_data_type:: |
property | |||
rules_data_type:: |
function | Checks the value of your data type. E.g. the number data type uses this to make sure the value is a number. | 3 | |
rules_data_type:: |
function | Constructor | ||
rules_data_type:: |
function | Returns whether the input evaluator should be used for this data | ||
rules_data_type:: |
function | Gets the data | ||
rules_data_type:: |
function | Gets an input form for creating an instance of your data type. Implement it, if your data type has set use_input_form to TRUE. | 1 | |
rules_data_type:: |
function | Gets the information about this data type. | ||
rules_data_type:: |
function | Inititate the data | ||
rules_data_type:: |
function | Returns whether this data is identifiable | ||
rules_data_type:: |
function | Returns whether this data is savable | ||
rules_data_type:: |
function | Replaces the data with the new one | ||
rules_data_type:: |
function | Returns whether this data makes use of an input form for creating an instance on the fly. |