blob: 4e71ebe6c13a23dd0f773ba3f0f5f9684af99425 (
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
*/
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 array
*/
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();
}
|