AC_4897, AC_4898, AC_4899: Multifile uploader fixes.
[acontent.git] / include / classes / DAO / ResourceTypesDAO.class.php
1 <?php
2 /************************************************************************/
3 /* AContent                                                             */
4 /************************************************************************/
5 /* Copyright (c) 2010                                                   */
6 /* Inclusive Design Institute                                           */
7 /*                                                                      */
8 /* This program is free software. You can redistribute it and/or        */
9 /* modify it under the terms of the GNU General Public License          */
10 /* as published by the Free Software Foundation.                        */
11 /************************************************************************/
12
13 /**
14 * DAO for "resource_types" table
15 * @access       public
16 * @author       Cindy Qi Li
17 * @package      DAO
18 */
19
20 if (!defined('TR_INCLUDE_PATH')) exit;
21
22 require_once(TR_INCLUDE_PATH. 'classes/DAO/DAO.class.php');
23
24 class ResourceTypesDAO extends DAO {
25
26         /**
27         * Return all rows
28         * @access  public
29         * @param   none
30         * @return  table rows
31         * @author  Cindy Qi Li
32         */
33         function getAll()
34         {
35             $sql = 'SELECT * FROM '.TABLE_PREFIX.'resource_types ORDER BY type_id';
36             return $this->execute($sql);
37         }
38 }
39 ?>