This class provides basic methods for reading Consumer Settings.
ATTENTION: This class handles the Domain Name always lower-case!
The Consumer Configuration File has the Format:
- [www.example.com]
- id = 0
- [*]
- id = 0
| Class | Description |
|---|---|
| ConsumerHelper | This class provides extended methods for manipulating Consumer Settings. |
Finds the Consumer ID for the given Domain.
If no Domain Name is passed it uses
- $_SERVER['HTTP_HOST']
This method includes Exception Handling, so if you just want to get the Consumer ID for a Domain use
Fetches a full configured Consumer for the given Domain or null if no Consumer could be found for this URL.
Returns the Consumer Config Entry for the given Domain.
If no Consumer could be found at all (none installed maybe), it returns -2. It returns -1 if the Config Entry is not existing.
Returns the Consumer ID for a Domain Name.
If no match could be found, it returns -1. If no Consumer could be found at all (none installed maybe), it returns -2. It returns -3 if the Domain Name could not be processed (empty String or invalid Host URL). ATTENTION: This function handles Domain Names lower-case.
Gets all Domain names matching the given Consumer ID.
Returns an empty array if the given CID could not be found.
Returns the complete Consumer Configuration for this System, including ALL settings for ALL Consumer.
Documentation generated by phpDocumentor 1.3.1