public static function CourseObjectCertificate::getMaxOccurences in Course 6
Same name and namespace in other branches
- 7.2 modules/course_certificate/course_certificate.classes.inc \CourseObjectCertificate::getMaxOccurences()
- 7 modules/course_certificate/course_certificate.classes.inc \CourseObjectCertificate::getMaxOccurences()
Return the number of occurances that can be in a course at the same time. For example, the design of the Certificate module can only have 1 set of mappings per node. The same goes for Course Credit. We may also want a course object that can only be added twice (for example, a before/after comparison).
This method is static because we might have to call it without an object being instantiated.
Overrides CourseObject::getMaxOccurences
File
- modules/
course_certificate/ course_certificate.classes.inc, line 39
Class
Code
public static function getMaxOccurences() {
return 1;
}