You are here: Re: Problems with include and duplication function definitions « PHP Programming Language « IT news, forums, messages
Re: Problems with include and duplication function definitions

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация