Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
core_cache\cacheable_object_array Class Reference
Inheritance diagram for core_cache\cacheable_object_array:
core_cache\cacheable_object_interface

Public Member Functions

 __construct (array $items=[])
 Constructs a new array object instance.
 
 prepare_to_cache ()
 Returns the data to cache for this object.
 

Static Public Member Functions

static wake_from_cache ($data)
 Returns the cacheable_object_array that was originally sent to the cache.
 

Constructor & Destructor Documentation

◆ __construct()

core_cache\cacheable_object_array::__construct ( array $items = [])
final

Constructs a new array object instance.

Parameters
array$items

Member Function Documentation

◆ prepare_to_cache()

core_cache\cacheable_object_array::prepare_to_cache ( )
final

Returns the data to cache for this object.

Return values
cached_object[]An array of cached_object instances.
Exceptions
coding_exception

Implements core_cache\cacheable_object_interface.

◆ wake_from_cache()

static core_cache\cacheable_object_array::wake_from_cache ( $data)
staticfinal

Returns the cacheable_object_array that was originally sent to the cache.

Parameters
array$data
Return values
self
Exceptions
coding_exception

Implements core_cache\cacheable_object_interface.


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