You are here

function CourseHandler::__construct in Course 7

Same name and namespace in other branches
  1. 6 includes/course.core.inc \CourseHandler::__construct()
  2. 7.2 includes/CourseHandler.inc \CourseHandler::__construct()

Overrides Entity::__construct

1 call to CourseHandler::__construct()
CourseObjectNode::__construct in includes/CourseObjectNode.inc
1 method overrides CourseHandler::__construct()
CourseObjectNode::__construct in includes/CourseObjectNode.inc

File

includes/CourseHandler.inc, line 11

Class

CourseHandler
Master class for anything Course related.

Code

function __construct($values, $entityType) {
  parent::__construct($values, $entityType);
  foreach ($this
    ->optionsDefinition() as $key => $value) {
    if (!isset($this->{$key})) {
      $this->{$key} = $value;
    }
  }
}