|
Posted by Wescotte on 04/17/06 17:50
Yes, I understand that but I still fail to see how to make it all work.
If I have a base edi file class and a class for each type that inherits
the base class that contains the 3 functions mentioned above I'd still
need do have something like
$query = "select class_name, class_source from class_list";
$result = odbc_exec($connection, $query);
$done = false;
while (odbc_fetch_row($result) || $done) {
include odbc_result($result, "class_source");
$test_case = new odbc_result($result, "class_name"); // I can't
see this working but I haven't specifcally tested it yet
if ($test_case.Known_File_Format($fillename)) {
$test_case.Parse_file($filename);
$done = true;
}
}
Again, the whole purpose of this was to allow a user to add additional
EDI file formats (and code to process them) without acessing any code.
Maybe I'm missing something obvious but I can't think my way around how
to actually get this to work without hard coding the source names/class
names.
[Back to original message]
|