public function __construct($params = array()) { parent::__construct($params); // consider letting the following two lines happen automatically on the parent... $this->initGroupsUsers(); $this->addCourse(new Course(array('shortname' => ' C1', "name" => "Course One"))); $this->addTag('block'); $this->addTag('block_quickmail'); }