src/snac/server/validation/validators/IDValidator.php
/**
     * Check an object for language with ID
     *
     * Checks that the object has no language object with an ID
     *
     * @param \snac\data\AbstractData $object object to check
     * @return boolean true if no langauge with ID, false otherwise
     */
Check an object for language with ID
Checks that the object has no language object with an ID

@param \snac\data\AbstractData $object object to check
@return boolean true if no langauge with ID, false otherwise
Check an object for language with ID Checks that the object has no language object with an ID @param \ snac \ data \ AbstractData $object object to check @return boolean true if no langauge with ID false otherwise
private function checkLanguage($object) {
        if ($object->getLanguage() != null) {
            if ($object->getLanguage()->getID() != null) {
                $this->addError("Object with no ID has Language with ID", $object);
                return false;
            } else {
                return $this->checkSCM($object->getLanguage());
            }
        }
        return true;
    }
private function checkLanguage ( $ object ) { if ( $ object -> getLanguage ( ) != null ) { if ( $ object -> getLanguage ( ) -> getID ( ) != null ) { $ this -> addError ( " Object with no ID has Language with ID " , $ object ) ; return false ; } else { return $ this -> checkSCM ( $ object -> getLanguage ( ) ) ; } } return true ; }
Check an object for language with ID
 Checks that the object has no language object with an ID
Check an object for language with ID Checks that the object has no language object with an ID