/** * Prepare info about attendance sessions taking into account view parameters. * * @param attforblock $att instance */ public function __construct(attforblock $att) { global $DB; $this->perm = $att->perm; $this->sessions = $att->get_filtered_sessions(); $this->groups = groups_get_all_groups($att->course->id); $this->hiddensessionscount = $att->get_hidden_sessions_count(); $this->att = $att; }