mixed createConsumer(
$consumerDefinition
)
|
|
This function creates a new Consumer and returns one of the following keys:
- CONSUMER_ERROR_WRONG_TYPE (the passed ConsumerDefinition is not of proper type)
- CONSUMER_ERROR_UNDEFINED (the ConsumerDefinition is not correct set up - normally values missing)
- CONSUMER_ERROR_CONFIG (for example if Config entry could not be created)
- CONSUMER_ERROR_DATABASE (problems encountered during database installation)
- CONSUMER_CREATED_SUCCESS (everything worked fine, Consumer was created)
Parameters:
API Tags:
| Return: | one of the mentioned Constants |