root/2.0.0-dev/application/models/killboard_ship_class.php @ 331

Revision 331, 0.5 KB (checked in by knyghtmare, 12 years ago)

Added items remotely

V:\users\knyghtmare\edk\application
V:\users\knyghtmare\edk\media
V:\users\knyghtmare\edk\system
V:\users\knyghtmare\edk\.htaccess
V:\users\knyghtmare\edk\index.php

Line 
1<?php
2
3  defined('SYSPATH') or die('No direct script access.');
4
5  class Killboard_Ship_Class_Model extends Model
6  {
7
8    public function __construct()
9    {
10      parent::__construct();
11    }
12   
13    public static function All()
14    {
15      $db = Database::instance();
16      $query = $db->from('killboard_ship_classes')->orderby('ship_class_name')->get();
17      $ship_classes = array();
18      foreach($query as $row)
19        $ship_classes[] = $row;
20      return $ship_classes;
21    }
22
23  }
24
25?>
Note: See TracBrowser for help on using the browser.