colap Posted February 25, 2011 Share Posted February 25, 2011 Zend_Db_Table::setDefaultAdapter($dbAdapter); Is setDefaultAdapter a static function ? Is :: used for static functions ? Is it equivalent to the previous one ? $obj=new Zend_Db_Table(); $obj->setDefaultAdapter($dbAdapter); Quote Link to comment https://forums.phpfreaks.com/topic/228794-when-is-used/ Share on other sites More sharing options...
Altrozero Posted February 25, 2011 Share Posted February 25, 2011 http://uk3.php.net/manual/en/language.oop5.paamayim-nekudotayim.php It basically allows you to access static functions and const variables in a class without having to create an instance of it. e.g you could go class obj { const var = 'test'; } echo obj::var; Quote Link to comment https://forums.phpfreaks.com/topic/228794-when-is-used/#findComment-1179603 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.