Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
core_message\time_last_message_between_users Class Reference

Cache data source for the time of the last message in a conversation. More...

Inheritance diagram for core_message\time_last_message_between_users:
cache_data_source

Public Member Functions

 load_for_cache ($key)
 Loads the data for the key provided ready formatted for caching.
 
 load_many_for_cache (array $keys)
 Loads several keys for the cache.
 

Static Public Member Functions

static get_instance_for_cache (cache_definition $definition)
 Returns an instance of the data source class that the cache can use for loading data using the other methods specified by this interface.
 
static get_instance_for_cache (\cache_definition $definition)
 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.
 

Static Protected Attributes

static time_last_message_between_users $instance = null
 the singleton instance of this class.
 

Detailed Description

Cache data source for the time of the last message in a conversation.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_instance_for_cache() [1/2]

static cache_data_source::get_instance_for_cache ( cache_definition $definition)
staticinherited

Returns an instance of the data source class that the cache can use for loading data using the other methods specified by this interface.

Parameters
cache_definition$definition
Return values
object

Implemented in core_course\cache\course_image, mod_assign\cache\overrides, mod_lesson\cache\overrides, mod_quiz\cache\overrides, mod_scorm\cache\elements, and question_finder.

◆ 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
cache_definition$definition
Return values
object

◆ 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$keyThe key to load.
Return values
mixedWhat 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$keysAn array of keys each of which will be string|int.
Return values
arrayAn array of matching data items.

Implements cache_data_source.


The documentation for this class was generated from the following file: