You are here

public static function CourseObject::getMaxOccurences in Course 7

Same name and namespace in other branches
  1. 6 includes/course_object.core.inc \CourseObject::getMaxOccurences()
  2. 7.2 includes/CourseObject.inc \CourseObject::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.

2 methods override CourseObject::getMaxOccurences()
CourseObjectCertificate::getMaxOccurences in modules/course_certificate/course_certificate.classes.inc
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…
CourseObjectTest::getMaxOccurences in tests/course_test/course_test.classes.inc
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…

File

includes/CourseObject.inc, line 1029

Class

CourseObject
Parent abstract base class of all course objects.

Code

public static function getMaxOccurences() {
  return FALSE;
}