src/snac/server/validation/validators/IDValidator.php
/**
     * Validate a Contributor
     *
     * @param \snac\data\Contributor $contributor Contributor to validate
     * @param mixed[] $context optional Any context information needed for validation
     * @return boolean true if valid, false otherwise
     */
Validate a Contributor
@param \snac\data\Contributor $contributor Contributor to validate
@param mixed[] $context optional Any context information needed for validation
@return boolean true if valid, false otherwise
Validate a Contributor @param \ snac \ data \ Contributor $contributor Contributor to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise
public function validateContributor($contributor, $context=null) {
        if ($context == null) {
            $this->addError("Invalid placement of contributor", $contributor);
            return false;
        }
        $preID = $context->getID() . ":";
        return $this->validateGeneric($contributor, $context->getContributors(), "contributor", $preID);
    }
public function validateContributor ( $ contributor , $ context = null ) { if ( $ context == null ) { $ this -> addError ( " Invalid placement of contributor " , $ contributor ) ; return false ; } $ preID = $ context -> getID ( ) . " : " ; return $ this -> validateGeneric ( $ contributor , $ context -> getContributors ( ) , " contributor " , $ preID ) ; }
Validate a Contributor
 @param \snac\data\Contributor $contributor Contributor to validate
 @param mixed[] $context optional Any context information needed for validation
 @return boolean true if valid, false otherwise
Validate a Contributor @param \ snac \ data \ Contributor $contributor Contributor to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise
// Can not get here without context