src/snac/util/EADParser.php
/**
     * Validate a zip file
     *
     * Runs PHP's libxml implementation to validate all the contents of the zip file
     * against the EAD2002 schema file.  Returns a list of validation errors.
     *
     * @param $zipcontents string the contents of the zip file to be parsed
     * @return string The contents of the result zip
     */
Validate a zip file
Runs PHP's libxml implementation to validate all the contents of the zip file
against the EAD2002 schema file.  Returns a list of validation errors.

@param $zipcontents string the contents of the zip file to be parsed
@return string The contents of the result zip
Validate a zip file Runs PHP ' s libxml implementation to validate all the contents of the zip file against the EAD2002 schema file . Returns a list of validation errors . @param $zipcontents string the contents of the zip file to be parsed @return string The contents of the result zip
public function validateZip($zipcontents) {
        $tmpdir = $this->unzip($zipcontents);
        $eaddir = $tmpdir."/ead/";
        $errors = $this->validateDirectory($eaddir);
        $this->logger->addDebug("Cleaning up");
        $this->cleanup($tmpdir);
        $this->logger->addDebug("Returning results");
        return $errors;
    }
public function validateZip ( $ zipcontents ) { $ tmpdir = $ this -> unzip ( $ zipcontents ) ; $ eaddir = $ tmpdir . " /ead/ " ; $ errors = $ this -> validateDirectory ( $ eaddir ) ; $ this -> logger -> addDebug ( " Cleaning up " ) ; $ this -> cleanup ( $ tmpdir ) ; $ this -> logger -> addDebug ( " Returning results " ) ; return $ errors ; }
Validate a zip file
 Runs PHP's libxml implementation to validate all the contents of the zip file
 against the EAD2002 schema file.
Validate a zip file Runs PHP ' s libxml implementation to validate all the contents of the zip file against the EAD2002 schema file .