public function can_be_edited() {
        if ($this->canbeedited === null) {
            $this->canbeedited = !quiz_has_attempts($this->quizobj->get_quizid());
        }
        return $this->canbeedited;
    }
public function can_be_edited() {
        if ($this->canbeedited === null) {
            $this->canbeedited = !quiz_has_attempts($this->quizobj->get_quizid());
        }
        return $this->canbeedited;
    }
public function can_be_edited ( ) { if ( $ this -> canbeedited === null ) { $ this -> canbeedited = ! quiz_has_attempts ( $ this -> quizobj -> get_quizid ( ) ) ; } return $ this -> canbeedited ; }
Quizzes can only be edited if they have not been attempted.
@return bool whether the quiz can be edited.
Quizzes can only be edited if they have not been attempted .