You are here

function PclZip::errorInfo in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/pclzip/pclzip.lib.php \PclZip::errorInfo()

File

includes/moodle/lib/pclzip/pclzip.lib.php, line 1350

Class

PclZip

Code

function errorInfo($p_full = false) {
  if (PCLZIP_ERROR_EXTERNAL == 1) {
    return PclErrorString();
  }
  else {
    if ($p_full) {
      return $this
        ->errorName(true) . " : " . $this->error_string;
    }
    else {
      return $this->error_string . " [code " . $this->error_code . "]";
    }
  }
}