Re: common method names

From: Date: Wed, 05 Mar 2003 09:35:39 +0000
Subject: Re: common method names
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14078@lists.php.net to get a copy of this message
Wolfram Kriesing wrote:
i was just using HTML_TreeMenu and QuickForm and i realized that in TreeMenu you print the menu using
    $treeMenu->printMenu()
but in QuickForm you need to use
    $form->display()
should there not be a common name for both? i would suggest display() or toHtml() any comments? oops - sorry Richy i saw that TreeMenu has a method toHtml()
but still the one that prints directly is called printMenu() so may be toHtml() and printToHtml() could be possible unique names!? -- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... translating template engine .... http://sf.net/projects/simpletpl ... authentication system .... http://sf.net/projects/auth

« previous php.pear.dev (#14078) next »