class RulesTestClassAction in Rules 7.2
Action for testing writing class-based actions.
Hierarchy
- class \RulesPluginHandlerBase extends \FacesExtender implements RulesPluginHandlerInterface
- class \RulesActionHandlerBase implements RulesActionHandlerInterface
- class \RulesTestClassAction
- class \RulesActionHandlerBase implements RulesActionHandlerInterface
Expanded class hierarchy of RulesTestClassAction
File
- tests/
rules_test.rules.inc, line 243 - Includes any rules integration provided by the module.
View source
class RulesTestClassAction extends RulesActionHandlerBase {
/**
* Defines the action.
*/
public static function getInfo() {
return array(
'name' => 'rules_test_class_action',
'label' => t('Test class based action'),
'group' => t('Node'),
'parameter' => array(
'node' => array(
'type' => 'node',
'label' => t('Node'),
),
),
);
}
/**
* Executes the action.
*/
public function execute($node) {
rules_log('Action called with node ' . $node->nid);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RulesPluginHandlerBase:: |
protected | property | ||
RulesPluginHandlerBase:: |
public | function |
Implements RulesPluginImplInterface::access(). Overrides RulesPluginHandlerInterface:: |
|
RulesPluginHandlerBase:: |
public | function |
Returns an array of info assertions for the specified parameters. Overrides RulesPluginHandlerInterface:: |
1 |
RulesPluginHandlerBase:: |
public | function |
Returns an array of required modules. Overrides RulesPluginHandlerInterface:: |
|
RulesPluginHandlerBase:: |
public | function |
Alters the generated configuration form of the element. Overrides RulesPluginHandlerInterface:: |
|
RulesPluginHandlerBase:: |
public | function |
Allows altering of the element's action/condition info. Overrides RulesPluginHandlerInterface:: |
|
RulesPluginHandlerBase:: |
public | function |
Processes settings independent from a form submission. Overrides RulesPluginHandlerInterface:: |
|
RulesPluginHandlerBase:: |
public | function |
Validates $settings independent from a form submission. Overrides RulesPluginHandlerInterface:: |
|
RulesPluginHandlerBase:: |
public | function | Overridden to provide $this->element to make the code more meaningful. | |
RulesTestClassAction:: |
public | function | Executes the action. | |
RulesTestClassAction:: |
public static | function | Defines the action. |