interface RocketChatConfigInterface in Rocket.Chat 8
Same name and namespace in other branches
- 8.2 modules/rocket_chat_api/src/RocketChat/RocketChatConfigInterface.php \Drupal\rocket_chat_api\RocketChat\RocketChatConfigInterface
Interface to make an Arbitrary storage backend for the config elements.
@package RocketChat
Hierarchy
- interface \Drupal\rocket_chat_api\RocketChat\RocketChatConfigInterface
Expanded class hierarchy of RocketChatConfigInterface
All classes that implement RocketChatConfigInterface
File
- modules/
rocket_chat_api/ src/ RocketChat/ RocketChatConfigInterface.php, line 18
Namespace
Drupal\rocket_chat_api\RocketChatView source
interface RocketChatConfigInterface {
/**
* Get a RocketChatConfigInterface Element.
*
* @param string $elementName
* Key value to retrieve from the RocketChatConfigInterface Backend.
* @param string $default
* A possible Default to use when no config is found in the backend.
*
* @return mixed
* The retrieved config value.
*/
public function getElement($elementName, $default = NULL);
/**
* Set an Element in the RocketChatConfigInterface.
*
* @param string $elementName
* Key value to set in the RocketChatConfigInterface Backend.
* @param string $newValue
* the new Value to store.
*/
public function setElement($elementName, $newValue);
/**
* Is this a Debug / verbose Run.
*
* @return bool
* Are we in debug mode?
*/
public function isDebug();
/**
* Get a function pointer to the function to use for JsonDecodeing.
*
* @return mixed
* Result array
*/
public function getJsonDecoder();
/**
* Notify the backend.
*
* @param string $message
* Message to report back.
* @param string $type
* Type or Level of the Message.
*
* @return mixed
* Result of notify on backend.
*/
public function notify($message, $type);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RocketChatConfigInterface:: |
public | function | Get a RocketChatConfigInterface Element. | 2 |
RocketChatConfigInterface:: |
public | function | Get a function pointer to the function to use for JsonDecodeing. | 2 |
RocketChatConfigInterface:: |
public | function | Is this a Debug / verbose Run. | 2 |
RocketChatConfigInterface:: |
public | function | Notify the backend. | 2 |
RocketChatConfigInterface:: |
public | function | Set an Element in the RocketChatConfigInterface. | 2 |