public function getMigrations( )
    {
        $migrations = array();
        
        $dir = opendir( $this->migrationPath );
        
        while ( ( $file = readdir( $dir ) ) !== FALSE )
        {
            if ( '.' !== $file && '..' !== $file )
            {
                $migrations[] = str_replace( '.php', '', $file );
            }
        }
        
        closedir( $dir );
        
        usort( $migrations, array( $this, '_sortMigrations' ) );
        
        return $this->filter( self::ON_GET_MIGRATIONS_FILTER, $migrations );
    }
public function getMigrations( )
    {
        $migrations = array();
        
        $dir = opendir( $this->migrationPath );
        
        while ( ( $file = readdir( $dir ) ) !== FALSE )
        {
            if ( '.' !== $file && '..' !== $file )
            {
                $migrations[] = str_replace( '.php', '', $file );
            }
        }
        
        closedir( $dir );
        
        usort( $migrations, array( $this, '_sortMigrations' ) );
        
        return $this->filter( self::ON_GET_MIGRATIONS_FILTER, $migrations );
    }
public function getMigrations ( ) { $ migrations = array ( ) ; $ dir = opendir ( $ this -> migrationPath ) ; while ( ( $ file = readdir ( $ dir ) ) !== FALSE ) { if ( '.' !== $ file && '..' !== $ file ) { $ migrations [ ] = str_replace ( '.php' , '' , $ file ) ; } } closedir ( $ dir ) ; usort ( $ migrations , array ( $ this , '_sortMigrations' ) ) ; return $ this -> filter ( self :: ON_GET_MIGRATIONS_FILTER , $ migrations ) ; }
Returns a list of migration files.

@filter ON_GET_MIGRATIONS_FILTER

@return array list of available migrations
Returns a list of migration files .