Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 24... Línea 24...
24
 
24
 
Línea 25... Línea 25...
25
declare(strict_types=1);
25
declare(strict_types=1);
Línea -... Línea 26...
-
 
26
 
26
 
27
namespace mod_assign\cache;
Línea 27... Línea 28...
27
namespace mod_assign\cache;
28
 
28
 
29
use core_cache\data_source_interface;
29
use cache_definition;
30
use core_cache\definition;
30
 
31
 
31
/**
32
/**
32
 * Class assign_overrides
33
 * Class assign_overrides
33
 *
34
 *
34
 * @package   mod_assign
35
 * @package   mod_assign
Línea 35... Línea 36...
35
 * @copyright 2021 Shamim Rezaie <shamim@moodle.com>
36
 * @copyright 2021 Shamim Rezaie <shamim@moodle.com>
36
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Línea 37... Línea 38...
37
 */
38
 */
38
class overrides implements \cache_data_source {
39
class overrides implements data_source_interface {
39
 
40
 
40
    /** @var overrides the singleton instance of this class. */
41
    /** @var overrides the singleton instance of this class. */
41
    protected static $instance = null;
42
    protected static $instance = null;
42
 
43
 
43
    /**
44
    /**
44
     * Returns an instance of the data source class that the cache can use for loading data using the other methods
45
     * Returns an instance of the data source class that the cache can use for loading data using the other methods
45
     * specified by this interface.
46
     * specified by this interface.
46
     *
47
     *
47
     * @param cache_definition $definition
48
     * @param definition $definition
48
     * @return object
49
     * @return object
49
     */
50
     */