src/Ubiquity/contents/validation/ValidatorsManager.php
public static function validate($instance, $group = "") {
		$class = get_class ( $instance );
		$cache = self::getClassCacheValidators ( $class, $group );
		if ($cache !== false) {
			return self::validateFromCache_ ( $instance, $cache );
		}
		$members = self::fetch ( $class );
		if ($group !== "") {
			$members = self::getGroupArrayValidators ( $members, $group );
		}
		return self::validate_ ( $instance, $members );
	}
public static function validate($instance, $group = "") {
		$class = get_class ( $instance );
		$cache = self::getClassCacheValidators ( $class, $group );
		if ($cache !== false) {
			return self::validateFromCache_ ( $instance, $cache );
		}
		$members = self::fetch ( $class );
		if ($group !== "") {
			$members = self::getGroupArrayValidators ( $members, $group );
		}
		return self::validate_ ( $instance, $members );
	}
public static function validate ( $ instance , $ group = "" ) { $ class = get_class ( $ instance ) ; $ cache = self :: getClassCacheValidators ( $ class , $ group ) ; if ( $ cache !== false ) { return self :: validateFromCache_ ( $ instance , $ cache ) ; } $ members = self :: fetch ( $ class ) ; if ( $ group !== "" ) { $ members = self :: getGroupArrayValidators ( $ members , $ group ) ; } return self :: validate_ ( $ instance , $ members ) ; }
Validates an instance

@param object $instance
@param string $group
@return \Ubiquity\contents\validation\validators\ConstraintViolation[]
Validates an instance