aboutsummaryrefslogtreecommitdiff
path: root/lib/modules/OERModule.php
blob: 6cc89096ab015fba6ff0e4bfa1e1beecb3f60cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

interface OERModule
{
    /**
     * Determines if the StudipModule wants to handle the OERMaterial. Returns false if not.
     * @param OERMaterial $material
     * @return false|Icon
     */
    public static function oerModuleWantsToUseMaterial(OERMaterial $material);

    /**
     * This function is triggered i a user chose to use this module as the target of the oermaterial.
     * Now this module should put a copy of $material in its own area of the given course.
     * @param OERMaterial $material
     * @param Course $course
     * @return void
     */
    public static function oerModuleIntegrateMaterialToCourse(OERMaterial $material, Course $course);

    /**
     * Returns an Icon class object with the given role.
     * @param string $role
     * @return null|Icon
     */
    public function oerGetIcon($role = Icon::ROLE_CLICKABLE);

    public function getMetadata();
}