コード例 #1
0
 /**
  * This loads the file with the schema checks, not the schema definition per se
  *
  * @param string $fileName
  * @param string $fileFormat
  * @throws Exception
  */
 public function loadChecksFile($fileName, $fileFormat)
 {
     switch ($fileFormat) {
         case 'ezini':
             $parser = new ezdbiIniFormat();
             $this->checks = $parser->parseFile($fileName);
             break;
         default:
             throw new Exception("Schema file format {$fileFormat} not supported");
     }
 }