public function checkRecord($marc)
    {
        // Reset warnings:
        $this->warnings = array();

        // Fail if we didn't get a valid object:
        if (!is_a($marc, 'File_MARC_Record')) {
            $this->warn('Must pass a File_MARC_Record object to checkRecord');
        } else {
            $this->checkDuplicate1xx($marc);
            $this->checkMissing245($marc);
            $this->standardFieldChecks($marc);
        }

        return $this->warnings;
    }
public function checkRecord($marc)
    {
        // Reset warnings:
        $this->warnings = array();

        // Fail if we didn't get a valid object:
        if (!is_a($marc, 'File_MARC_Record')) {
            $this->warn('Must pass a File_MARC_Record object to checkRecord');
        } else {
            $this->checkDuplicate1xx($marc);
            $this->checkMissing245($marc);
            $this->standardFieldChecks($marc);
        }

        return $this->warnings;
    }
public function checkRecord ( $ marc ) { // Reset warnings: $ this -> warnings = array ( ) ; // Fail if we didn't get a valid object: if ( ! is_a ( $ marc , 'File_MARC_Record' ) ) { $ this -> warn ( 'Must pass a File_MARC_Record object to checkRecord' ) ; } else { $ this -> checkDuplicate1xx ( $ marc ) ; $ this -> checkMissing245 ( $ marc ) ; $ this -> standardFieldChecks ( $ marc ) ; } return $ this -> warnings ; }
Check the provided MARC record and return an array of warning messages.

@param File_MARC_Record $marc Record to check

@return array
Check the provided MARC record and return an array of warning messages .