/** * Return true if the record is valid. * * A nested record is valid iff it and all contained records are valid. * * @see Record::isValid() * * @return boolean */ public function isValid() { return parent::isValid() && !Helper::every($this->_records, function (Record $record) { return $record->isValid(); }); }
/** * Return TRUE if the record is valid. * * A valid authority record MUST have exactly one valid PPN field * (003@/00$0) and exactly one type field (002@/0$0) with a type indicator * `T'. * * @see AuthorityRecord::checkPPN(); * @see AuthorityRecord::checkType(); * * @return boolean TRUE if the record is valid */ public function isValid() { return parent::isValid() && $this->checkPPN() && $this->checkType(); }