-- iceangel89 <[email protected]> wrote (on Thursday, 07 May 2009, 06:35 AM -0700): > > what abt other classes? like Zend_Validate?
Zend_Validate defines an interface (Zend_Validate_Interface), and a standard abstract base class (Zend_Validate_Abstract). These are covered in the manual. > Giorgio Sironi wrote: > > 2009/5/5 iceangel89 <[email protected]> > > > function __construct($var1, $var2 ...) {} with as many variables as i > > > like? > > > will my constructor affect the default behaviour of the class? > > > > > > eg. function filter($var1, $var2 = 'something') {} > > > > If you define a new filter that implements Zend_Filter_Interface, you can > > define whatever __construct() method you want, and create internally > > filters > > that does the job. -- Matthew Weier O'Phinney Project Lead | [email protected] Zend Framework | http://framework.zend.com/
