public static function checkClassList( $name, array $list )
	{
		foreach( $list as $object ) {
			if( ($object instanceof $name) === false ) {
				throw new MW_Common_Exception( sprintf( 'Object doesn\'t implement "%1$s"', $name ) );
			}
		}
	}
public static function checkClassList( $name, array $list )
	{
		foreach( $list as $object ) {
			if( ($object instanceof $name) === false ) {
				throw new MW_Common_Exception( sprintf( 'Object doesn\'t implement "%1$s"', $name ) );
			}
		}
	}
public static function checkClassList ( $ name , array $ list ) { foreach ( $ list as $ object ) { if ( ( $ object instanceof $ name ) === false ) { throw new MW_Common_Exception ( sprintf ( 'Object doesn\'t implement "%1$s"' , $ name ) ) ; } } }
Tests if a list of objects are an instance of the given class, extends the class or implements the interface.

@param string $name Name of the class or interface
@param array $list List of objects to test
@throws MW_Common_Exception if an object of the list doesn't match the type
Tests if a list of objects are an instance of the given class extends the class or implements the interface .