src/snac/server/validation/validators/HasOperationValidator.php
/**
     * Validate a Place
     *
     * @param \snac\data\Place $place Place to validate
     * @param mixed[] $context optional Any context information needed for validation
     * @return boolean true if valid, false otherwise
     */
Validate a Place
@param \snac\data\Place $place Place to validate
@param mixed[] $context optional Any context information needed for validation
@return boolean true if valid, false otherwise
Validate a Place @param \ snac \ data \ Place $place Place to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise
public function validatePlace($place, $context=null) {
        $success = $this->validateAbstractData($place, $context);
        foreach ($place->getDateList() as $date) {
            $success = $success &&
                        $this->validateDate($date, $place->getOperation());
        }
        return $success;
    }
public function validatePlace ( $ place , $ context = null ) { $ success = $ this -> validateAbstractData ( $ place , $ context ) ; foreach ( $ place -> getDateList ( ) as $ date ) { $ success = $ success && $ this -> validateDate ( $ date , $ place -> getOperation ( ) ) ; } return $ success ; }
Validate a Place
 @param \snac\data\Place $place Place to validate
 @param mixed[] $context optional Any context information needed for validation
 @return boolean true if valid, false otherwise
Validate a Place @param \ snac \ data \ Place $place Place to validate @param mixed [] $context optional Any context information needed for validation @return boolean true if valid false otherwise