src/snac/server/validation/validators/HasOperationValidator.php
/**
     * Validate a Name Entry
     *
     * @param \snac\data\NameEntry $nameEntry NameEntry to validate
     * @param mixed[] $context optional Any context information needed for validation
     * @return boolean true if valid, false otherwise
     */
Validate a Name Entry
@param \snac\data\NameEntry $nameEntry NameEntry to validate
@param mixed[] $context optional Any context information needed for validation
@return boolean true if valid, false otherwise
Validate a Name Entry @param \ snac \ data \ NameEntry $nameEntry NameEntry to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise
public function validateNameEntry($nameEntry, $context=null) {
        $success = $this->validateAbstractData($nameEntry, $context);
        $success = $success &&
                    $this->validateLanguage($nameEntry->getLanguage(), $nameEntry->getOperation());
        foreach ($nameEntry->getDateList() as $date) {
            $success = $success &&
                    $this->validateDate($date, $nameEntry->getOperation());
        }
        foreach ($nameEntry->getContributors() as $contributor) {
            $success = $success &&
                    $this->validateContributor($contributor, $nameEntry->getOperation());
        }
        return $success;
    }
public function validateNameEntry ( $ nameEntry , $ context = null ) { $ success = $ this -> validateAbstractData ( $ nameEntry , $ context ) ; $ success = $ success && $ this -> validateLanguage ( $ nameEntry -> getLanguage ( ) , $ nameEntry -> getOperation ( ) ) ; foreach ( $ nameEntry -> getDateList ( ) as $ date ) { $ success = $ success && $ this -> validateDate ( $ date , $ nameEntry -> getOperation ( ) ) ; } foreach ( $ nameEntry -> getContributors ( ) as $ contributor ) { $ success = $ success && $ this -> validateContributor ( $ contributor , $ nameEntry -> getOperation ( ) ) ; } return $ success ; }
Validate a Name Entry
 @param \snac\data\NameEntry $nameEntry NameEntry to validate
 @param mixed[] $context optional Any context information needed for validation
 @return boolean true if valid, false otherwise
Validate a Name Entry @param \ snac \ data \ NameEntry $nameEntry NameEntry to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise