src/filesystem/DummyFileSystem.php
public function addDummyFile(array $config)
    {
        $keys = ['id', 'is_hidden', 'is_deleted', 'folder_id', 'name_original', 'name_new', 'name_new_compound', 'mime_type', 'extension', 'hash_name', 'hash_file', 'upload_timestamp', 'file_size', 'upload_user_id', 'caption'];
        $item = array_flip($keys);
        $data = array_merge($item, $config);
        $this->_files[$data['id']] = $data;
    }
public function addDummyFile(array $config)
    {
        $keys = ['id', 'is_hidden', 'is_deleted', 'folder_id', 'name_original', 'name_new', 'name_new_compound', 'mime_type', 'extension', 'hash_name', 'hash_file', 'upload_timestamp', 'file_size', 'upload_user_id', 'caption'];
        $item = array_flip($keys);
        $data = array_merge($item, $config);
        $this->_files[$data['id']] = $data;
    }
public function addDummyFile ( array $ config ) { $ keys = [ 'id' , 'is_hidden' , 'is_deleted' , 'folder_id' , 'name_original' , 'name_new' , 'name_new_compound' , 'mime_type' , 'extension' , 'hash_name' , 'hash_file' , 'upload_timestamp' , 'file_size' , 'upload_user_id' , 'caption' ] ; $ item = array_flip ( $ keys ) ; $ data = array_merge ( $ item , $ config ) ; $ this -> _files [ $ data [ 'id' ] ] = $ data ; }
Add a dummy file.

Do not forget to call `insertDummyFiles()` afterwards.

@param array $config
@since 1.1.1
Add a dummy file .