protected function processSomeFiles($models, $media)
    {
        foreach ($models as $model) {
            foreach ($model->getMediaFiles() as $file) {
                if (in_array($file->name, $media)) {
                    $file->reprocess();
                }
            }
        }
    }
protected function processSomeFiles($models, $media)
    {
        foreach ($models as $model) {
            foreach ($model->getMediaFiles() as $file) {
                if (in_array($file->name, $media)) {
                    $file->reprocess();
                }
            }
        }
    }
protected function processSomeFiles ( $ models , $ media ) { foreach ( $ models as $ model ) { foreach ( $ model -> getMediaFiles ( ) as $ file ) { if ( in_array ( $ file -> name , $ media ) ) { $ file -> reprocess ( ) ; } } } }
Process a only a specified subset of MediaSort files.

@param array $media

@return void
Process a only a specified subset of MediaSort files .