src/snac/server/validation/validators/IDValidator.php
/**
     * Validate a Date
     *
     * @param \snac\data\SNACDate $date SNACDate to validate
     * @param mixed[] $context optional Any context information needed for validation
     * @return boolean true if valid, false otherwise
     */
Validate a Date
@param \snac\data\SNACDate $date SNACDate to validate
@param mixed[] $context optional Any context information needed for validation
@return boolean true if valid, false otherwise
Validate a Date @param \ snac \ data \ SNACDate $date SNACDate to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise
public function validateDate($date, $context=null) {
        $preID = "";
        $list = $this->constellation->getDateList();
        if ($context != null) {
            $list = $context->getDateList();
            $preID = $context->getID() . ":";
        }
        return $this->validateGeneric($date, $list, "date", $preID);
    }
public function validateDate ( $ date , $ context = null ) { $ preID = " " ; $ list = $ this -> constellation -> getDateList ( ) ; if ( $ context != null ) { $ list = $ context -> getDateList ( ) ; $ preID = $ context -> getID ( ) . " : " ; } return $ this -> validateGeneric ( $ date , $ list , " date " , $ preID ) ; }
Validate a Date
 @param \snac\data\SNACDate $date SNACDate to validate
 @param mixed[] $context optional Any context information needed for validation
 @return boolean true if valid, false otherwise
Validate a Date @param \ snac \ data \ SNACDate $date SNACDate to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise
// Get languages from the constellation // If there is a context, use that (in list form) instead, and add pre-id