Hi
Dieter,<br><br>Thanks for your suggestions.<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> I introduced new function to initialize set of properties of<br>
> PMA_DisplayResults class which are not set inside the constructor.<br>
> That functions is appeared as processParams().<br>
> But I'm not sure its a good name for that method.<br>
> Will a name like setProperties() or setAdditionalProperties() more suitable<br>
> for this function ?<br>
> Welcome to any suggestions.<br>
<br>
</div>Hi Chanaka,<br>
<br>
Assuming that you are talking about the properties that are not set<br>
with a constructor parameter (the properties should be defined in the<br>
constructor anyway, but not necessarely with a value supplied by a<br>
constructor parameter), I think setProperties() is the best choice.<br></blockquote><div><br>Yes, that's good.<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Would this method only set the properties that cannot be set with a<br>
constructor parameter, or just any property?<br></blockquote><div><br>This method only set the properties which cannot be set in constructor.<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Maybe you can consider calling it setProperty($name, $value). This<br>
enables you to set just any parameter.<br></blockquote><div><br>The class already have a method called __set($name, $value) to set any of the property in class.<br>But since there are around 17 properties to initialized, I think better to use this setProperties() method.<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
How are your properties defined? As single variables? Or as an array<br>
of properties?<br></blockquote></div><br>Sorry if I'm not calling to your question. (I'm not clear about what you try to ask.)<br>From the sql.php file I pass parameters to this function separately.<br>ex - setProperties($property1, property2, etc.)<br>
Those properties are with different data types.<br><br>Regards !<br>-- <br>____________________________________<br><br>Chanaka Indrajith<br>Bsc.Computer Engineering Undergraduate<br>Faculty of Engineering<br>University of Peradeniya<br>
Sri Lanka<br>____________________________________<br><br>