Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
core_cache\cached_object Class Reference

Public Member Functions

 __construct (cacheable_object_interface $obj)
 Constructs a cached object wrapper.
 
 restore_object ()
 Restores the data as an instance of the cacheable_object_interface class.
 

Protected Attributes

string $class
 The class of the cacheable object.
 
mixed $data
 The data returned by the cacheable_object_interface prepare_to_cache method.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

core_cache\cached_object::__construct ( cacheable_object_interface $obj)

Constructs a cached object wrapper.

Parameters
cacheable_object_interface$obj

Member Function Documentation

◆ restore_object()

core_cache\cached_object::restore_object ( )

Restores the data as an instance of the cacheable_object_interface class.

Return values
object

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