Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 12... Línea 12...
12
// GNU General Public License for more details.
12
// GNU General Public License for more details.
13
//
13
//
14
// You should have received a copy of the GNU General Public License
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
Línea 16... Línea -...
16
 
-
 
17
/**
-
 
18
 * Cache data source for the lesson overrides.
-
 
19
 *
-
 
20
 * @package   mod_lesson
-
 
21
 * @copyright 2021 Shamim Rezaie <shamim@moodle.com>
-
 
22
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
23
 */
-
 
24
 
16
 
Línea 25... Línea 17...
25
declare(strict_types=1);
17
declare(strict_types=1);
Línea -... Línea 18...
-
 
18
 
26
 
19
namespace mod_lesson\cache;
Línea 27... Línea 20...
27
namespace mod_lesson\cache;
20
 
28
 
21
use core_cache\data_source_interface;
29
use cache_definition;
22
use core_cache\definition;
30
 
23
 
31
/**
24
/**
32
 * Class lesson_overrides
25
 * Cache data source for the lesson overrides.
33
 *
26
 *
34
 * @package   mod_lesson
27
 * @package   mod_lesson
Línea 35... Línea 28...
35
 * @copyright 2021 Shamim Rezaie <shamim@moodle.com>
28
 * @copyright 2021 Shamim Rezaie <shamim@moodle.com>
36
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Línea 37... Línea 30...
37
 */
30
 */
38
class overrides implements \cache_data_source {
31
class overrides implements data_source_interface {
39
 
32
 
40
    /** @var overrides the singleton instance of this class. */
33
    /** @var overrides the singleton instance of this class. */
41
    protected static $instance = null;
34
    protected static $instance = null;
42
 
35
 
43
    /**
36
    /**
44
     * Returns an instance of the data source class that the cache can use for loading data using the other methods
37
     * 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.
38
     * specified by this interface.
46
     *
39
     *
47
     * @param cache_definition $definition
40
     * @param definition $definition
48
     * @return object
41
     * @return object
49
     */
42
     */