ZF-6626: Additions to Zend_Db_Table

Description

  1. It would be nice if you can get the name of the Zend_Db_Table.
  2. As mentioned before it would be nice if you can specify a $_selectClass in Zend_Db_Table

    protected $_selectClass = 'Zend_Db_Table_Select';
    
    /**
     * Returns the name of the table.
     * 
     * @return string
     */
    public function getName()
    {
        return $this->_name;
    }
    
    /**
     * Returns an instance of a Zend_Db_Table_Select object.
     *
     * @return Zend_Db_Table_Select
     */
    public function select()
    {
        @Zend_Loader::loadClass($this->_selectClass);
        return new $this->_selectClass($this);
    }

Comments

Use $table->info(Zend_Db_Table_Abstract::NAME) that mainly acts as a "catch-all getter"