Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
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: