Cache data source for the time of the last message in a conversation.
More...
Cache data source for the time of the last message in a conversation.
- Copyright
- 2016 Ryan Wyllie ryan@.nosp@m.mood.nosp@m.le.co.nosp@m.m
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_instance_for_cache() [1/2]
static cache_data_source::get_instance_for_cache |
( |
cache_definition | $definition | ) |
|
|
staticinherited |
◆ get_instance_for_cache() [2/2]
static core_message\time_last_message_between_users::get_instance_for_cache |
( |
\cache_definition | $definition | ) |
|
|
static |
Returns an instance of the data source class that the cache can use for loading data using the other methods specified by the cache_data_source interface.
- Parameters
-
- Return values
-
◆ load_for_cache()
core_message\time_last_message_between_users::load_for_cache |
( |
| $key | ) |
|
Loads the data for the key provided ready formatted for caching.
- Parameters
-
string | int | $key | The key to load. |
- Return values
-
mixed | What ever data should be returned, or false if it can't be loaded. |
Implements cache_data_source.
◆ load_many_for_cache()
core_message\time_last_message_between_users::load_many_for_cache |
( |
array | $keys | ) |
|
Loads several keys for the cache.
- Parameters
-
array | $keys | An array of keys each of which will be string|int. |
- Return values
-
array | An array of matching data items. |
Implements cache_data_source.
The documentation for this class was generated from the following file:
- message/classes/time_last_message_between_users.php