function __construct($obj, $institution)
 {
     global $CFG;
     if (!$institution->isMahara()) {
         $CFG->current_app->gcError('Attempt to create GcrMhrTableRecord using a non-mahara schema: ' . $institution->getShortName(), 'gcdatabaseerror');
     }
     parent::__construct($obj, $institution);
 }
 function __construct($obj, $eschool)
 {
     global $CFG;
     if (!$eschool->isMoodle()) {
         $CFG->current_app->gcError('Attempt to create GcrMdlTableRecord using a non-moodle schema: ' . $eschool->getShortName(), 'gcdatabaseerror');
     }
     parent::__construct($obj, $eschool);
 }
 public function hasSameInstitution(GcrTableRecord $obj)
 {
     return $obj->getInstitution()->getId() == $this->getInstitution()->getId();
 }