abstract class CourseObjectAccess in Course 6
Same name and namespace in other branches
- 7.2 includes/CourseObjectAccess.inc \CourseObjectAccess
- 7 includes/CourseObjectAccess.inc \CourseObjectAccess
Access handler for CourseObjects.
Subtypes must define take(), see(), and view().
Hierarchy
- class \CourseHandler
- class \CourseObjectAccess
Expanded class hierarchy of CourseObjectAccess
File
- includes/
course.core.inc, line 600 - course.core.inc File for main Course class.
View source
abstract class CourseObjectAccess extends CourseHandler {
private $courseObject;
function __construct($config = array()) {
$this->handlerType = 'course_access';
parent::__construct($config);
}
public function setCourseObject($courseObject) {
$this->courseObject = $courseObject;
}
public function getCourseObject() {
return $this->courseObject;
}
public abstract function take();
public abstract function see();
public abstract function view();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CourseHandler:: |
private | property | ||
CourseHandler:: |
protected | property | ||
CourseHandler:: |
public | property | ||
CourseHandler:: |
public | property | ||
CourseHandler:: |
public | property | ||
CourseHandler:: |
public | property | ||
CourseHandler:: |
final public | function | Merge an array of options onto the existing options. | |
CourseHandler:: |
public | function | Get an array of access messages. | |
CourseHandler:: |
protected | function | Return an array of database fields. This determines what fields should be serialized instead of stored. | |
CourseHandler:: |
function | |||
CourseHandler:: |
final public | function | Get an option stored in this CourseObject. | |
CourseHandler:: |
public | function | Get an object's configuration. | 1 |
CourseHandler:: |
public | function | Stub. Get the summary of an object's options. | 1 |
CourseHandler:: |
public | function | Return a list of warning strings about this handler. | 1 |
CourseHandler:: |
protected | function | Handlers need to declare their defaults if they have a configuration form. | 4 |
CourseHandler:: |
public | function | Handlers can declare a form. | 4 |
CourseHandler:: |
private | function | Merge arrays with replace, not append. | |
CourseHandler:: |
public | function | Save data somewhere. | 1 |
CourseHandler:: |
public | function | Validate? | 3 |
CourseHandler:: |
public | function | 2 | |
CourseHandler:: |
public | function | Set an access message to be displayed along with the course object when it is in the outline. For example, "This activity will open on XYZ" or "Please complete Step 1 to take this activity." | |
CourseHandler:: |
final public | function | Set an option for this handler. | |
CourseHandler:: |
final public | function | Set this entire handler's options. | |
CourseObjectAccess:: |
private | property | ||
CourseObjectAccess:: |
public | function | ||
CourseObjectAccess:: |
abstract public | function | 3 | |
CourseObjectAccess:: |
public | function | ||
CourseObjectAccess:: |
abstract public | function | 3 | |
CourseObjectAccess:: |
abstract public | function | 3 | |
CourseObjectAccess:: |
function |
Overrides CourseHandler:: |