code: public function readAttempt($id) {
          $model = $this->readObject($id, 'quiz_attempts');
          $model->url = $this->cfg->wwwroot . '/mod/quiz/attempt.php?attempt='.$id;
          $model->name = 'Attempt '.$id;
          return $model;
      }
docs: Reads a quiz attempt from the store with the given id.
  @param String $id
  @return PhpObj