What's the most efficient way to set pipeline flags for file upload and processing?

时间:2015-12-04 21:20:45

标签: php codeigniter upload data-processing

Sorry for the general nature of this question which might need to be broken into several sub-questions. I'm trying to make an already working application generic so it can more readily be expanded in the future. I'm using the Codeigniter framework.

The application uploads an ASCII file and performs several operations on it, transforming its format and its content, calculating features from it, and writing results to the DB and to output files that are posted on the site.

I'd like to take more advantage of the OOD aspect of Codeigniter/php and write a function (probably in my uploadController class) (SetPipelineFlags()) that will take as input 2 classes (objects) with numerous attributes defined by user input and compare them and then output a flags object which I can then use at various points to guide the upload process.

I've looked at using ArrayObject, but don't have much experience with it yet. So are there things that I haven't heard of that might be useful in thinking of how to redesign this upload process? I'll take any suggestions. Need a kick in the rump to get started! Thanks!

1 个答案:

答案 0 :(得分:0)

问题不是很清楚但是看到你有一个负责控制上传过程的管道,下面的分块文件上传过程图似乎是一个基本的开始:

enter image description here