By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,050 Members | 1,283 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,050 IT Pros & Developers. It's quick & easy.

classes in PHP - question

P: n/a

//I've the class Application
class Application...

//I call show function from class Abstract
$seller = new Seller...
$customer = new Customer...

//I've also the class Abstract - it implements some common code code
for all classes Seller, Customer,... etc..

class Abstract...
function show(...){

$form = new HTML_QuickForm...

//here's Customer class - some special code for customer

class customer extends Abstract

function List($form){
$quickFormSelect = new HTML_QuickForm_select

of course, I can do it, using some "if's" i Abstract class, but the
above code could simplify my application, unfortunately it doesn't work

Any suggestions about this code?

the above code can looks like this:


function Lista(){
$quickFormSelect = new HTML_QuickForm_select
return $quickFormSelect;

//and then in Abstarct class

but in this solution I can add only one $quickFormSelect do $form, how
to add some more $quickFormSelect calling function List only one (like
in my unfortunetly non working code - $this->List($form);)

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
dan schrieb:

Any suggestions about this code?

No, because I totally lost you. The code sample ist so split into pieces
that I can't even imagine waht you are trying to do. Please give code in
a single piece and describe more clearly what you want it to do.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.