View Single Post
Old 08-26-2009, 02:44 PM   #3 (permalink)
captainmerton
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

Sorry by client code i mean the php code calling the class. Will try and be more specific:

If I create a class which requires 2 variables to be passed into it in order for it to be instantiated and I only pass in 1 then php will error. Is there a way i can cater for this error in the class? i.e. can i make a class robust enough to elegantly handle not getting the variables passed in to it that it expects? Hope this is clear enough.
captainmerton is offline  
Reply With Quote