/** * reset the training * This deletes all card usages of the user in the training */ public function reset() { ilFlashcardUsage::_deleteUsages($this->object->getId(), $this->user->getId()); $this->usages = array(); $this->resetSessionValues(); }