src/snac/server/validation/validators/HasOperationValidator.php
/**
     * Validate a SCM Object
     *
     * @param \snac\data\SNACControlMetadata $scm Metadata to validate
     * @param mixed[] $context optional Any context information needed for validation
     * @return boolean true if valid, false otherwise
     */
Validate a SCM Object
@param \snac\data\SNACControlMetadata $scm Metadata to validate
@param mixed[] $context optional Any context information needed for validation
@return boolean true if valid, false otherwise
Validate a SCM Object @param \ snac \ data \ SNACControlMetadata $scm Metadata to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise
public function validateSNACControlMetadata($scm, $context=null) {
        $success = $this->validateAbstractData($scm, $context);
        $success = $success && $this->validateSource($scm->getCitation(), $scm->getOperation());
        $success = $success && $this->validateLanguage($scm->getLanguage(), $scm->getOperation());
        return $success;
    }
public function validateSNACControlMetadata ( $ scm , $ context = null ) { $ success = $ this -> validateAbstractData ( $ scm , $ context ) ; $ success = $ success && $ this -> validateSource ( $ scm -> getCitation ( ) , $ scm -> getOperation ( ) ) ; $ success = $ success && $ this -> validateLanguage ( $ scm -> getLanguage ( ) , $ scm -> getOperation ( ) ) ; return $ success ; }
Validate a SCM Object
 @param \snac\data\SNACControlMetadata $scm Metadata to validate
 @param mixed[] $context optional Any context information needed for validation
 @return boolean true if valid, false otherwise
Validate a SCM Object @param \ snac \ data \ SNACControlMetadata $scm Metadata to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise