protected function can_preview() {
        return empty($this->question->beingcopied) && !empty($this->question->id) &&
                $this->question->formoptions->canedit;
    }
protected function can_preview() {
        return empty($this->question->beingcopied) && !empty($this->question->id) &&
                $this->question->formoptions->canedit;
    }
protected function can_preview ( ) { return empty ( $ this -> question -> beingcopied ) && ! empty ( $ this -> question -> id ) && $ this -> question -> formoptions -> canedit ; }
Is the question being edited in a state where it can be previewed?
@return bool whether to show the preview link.
Is the question being edited in a state where it can be previewed?