<?php
/**
 * Author Dao
 *
 * @package koubel homepage
 * @author Miroslav Kubelik (koubel@volny.cz)
 * @copyright Copyright (c) 2007-2009 Miroslav Kubelik
 * @license http://opensource.org/licenses/gpl-license.php GNU GPL
 */

/**
 * Author Dao class based on the Zend_Db_Table
 *
 * @package koubel homepage
 * @author Miroslav Kubelik (koubel@volny.cz)
 * @copyright Copyright (c) 2007-2009 Miroslav Kubelik
 * @license http://opensource.org/licenses/gpl-license.php GNU GPL
 */ 
class Blog_Model_Dao_Author extends HomeWebApp_Model_Dao
{
    /** table name */
    const TABLE_NAME = "author";

    /** table name
     * @var string
     */
    protected $_name = self::TABLE_NAME;

    /** primary key column
     * @var string
     */
    protected $_primary = "id";

    /**
     * Get all authors.
     * @return array the sequential array of rows with author properties
     */
    public function fetchAllItems()
    {
        return $this->getAdapter()->select()
            ->from($this->_name)
            ->query()
            ->fetchAll();
    }
}
