function CourseObjectAccessTiming::isExpired in Course 6
Same name and namespace in other branches
- 7.2 plugins/course_object_access/timing.inc \CourseObjectAccessTiming::isExpired()
- 7 plugins/course_object_access/timing.inc \CourseObjectAccessTiming::isExpired()
2 calls to CourseObjectAccessTiming::isExpired()
- CourseObjectAccessTiming::see in plugins/
course/ access/ timing.inc - CourseObjectAccessTiming::take in plugins/
course/ access/ timing.inc
File
- plugins/
course/ access/ timing.inc, line 134
Class
Code
function isExpired() {
if ($this
->getOption('expiration') && time() > strtotime($this
->getOption('expiration'))) {
$this
->getCourseObject()
->setAccessMessage('closed', t('This activity closed on @expiration.', array(
'@expiration' => $this
->getOption('expiration'),
)));
return TRUE;
}
else {
return FALSE;
}
}