public function is_available() {
        if ($this->enabledcache === null) {
            $testpath = assignfeedback_editpdf\pdf::test_gs_path(false);
            $this->enabledcache = ($testpath->status == assignfeedback_editpdf\pdf::GSPATH_OK);
        }
        return $this->enabledcache;
    }
public function is_available() {
        if ($this->enabledcache === null) {
            $testpath = assignfeedback_editpdf\pdf::test_gs_path(false);
            $this->enabledcache = ($testpath->status == assignfeedback_editpdf\pdf::GSPATH_OK);
        }
        return $this->enabledcache;
    }
public function is_available ( ) { if ( $ this -> enabledcache === null ) { $ testpath = assignfeedback_editpdf \ pdf :: test_gs_path ( false ) ; $ this -> enabledcache = ( $ testpath -> status == assignfeedback_editpdf \ pdf :: GSPATH_OK ) ; } return $ this -> enabledcache ; }
Determine if ghostscript is available and working.

@return bool
Determine if ghostscript is available and working .