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

@param \snac\data\AbstractData $object object to check
@return boolean true if no dates with ID, false otherwise
Check an object for dates with ID Checks that the object has no date objects with IDs @param \ snac \ data \ AbstractData $object object to check @return boolean true if no dates with ID false otherwise
private function checkDates($object) {
        $success = true;
        if ($object->getDateList() != null) {
            foreach ($object->getDateList() as $date) {
                if ($date != null) {
                    if ($date->getID() != null) {
                        $this->addError("Object with no ID has a Date with ID", $object);
                        $success = false;
                    } else {
                        $success = $success && $this->checkSCM($date);
                    }
                }
            }
        }
        return $success;
    }
private function checkDates ( $ object ) { $ success = true ; if ( $ object -> getDateList ( ) != null ) { foreach ( $ object -> getDateList ( ) as $ date ) { if ( $ date != null ) { if ( $ date -> getID ( ) != null ) { $ this -> addError ( " Object with no ID has a Date with ID " , $ object ) ; $ success = false ; } else { $ success = $ success && $ this -> checkSCM ( $ date ) ; } } } } return $ success ; }
Check an object for dates with ID
 Checks that the object has no date objects with IDs
Check an object for dates with ID Checks that the object has no date objects with IDs