Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2008, 01:00 PM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default What is the use of the abstract class Zend_Db_Table?

What is the use of the abstract class Zend_Db_Table?

It's empty. I always use Zend_Db_Table_Abstract.

The chapter Zend_Db_Table in the Framework Reference Guide only uses the Zend_Db_Table_Abstract too..

But it must be there for a good reason

I hope that someone can explane it to me.

greetings Nangko
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-14-2008, 11:12 AM
Junior Member
 
Join Date: May 2007
Posts: 15
Default

I suppose at the moment it only acts like an alias.

But it does look a bit neater, and in the future it's possible that it will have more code than Abstract.php does.

Personally I extend Abstract if I'm making a library class that acts as a generic extension of Abstract. If I'm just making a db table model I'll extend Zend_Db_Table. I just find it neater that way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-14-2008, 02:34 PM
Elemental's Avatar
Senior Member
 
Join Date: Jul 2007
Posts: 119
Default

Zend_Db_Table is a relic of the beta days and we depreciated at one point in favor of Zend_Db_Table_Abstract. You should be using Zend_Db_Table_Abstract in your model classes unless you have extended it to create your own base Db_Table class.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:56 AM.