Subversion-Projekte lars-tiefland.ci

Revision

Revision 1809 | Revision 1826 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1809 Revision 1810
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 1809 $
8
 * @version $Rev: 1810 $
9
 */
9
 */
Zeile -... Zeile 10...
-
 
10
 
-
 
11
/**
-
 
12
 * Auspraegung_model
-
 
13
 * 
-
 
14
 * @package WebanOS CI
-
 
15
 * @author Lars Tiefland
-
 
16
 * @copyright 2016
-
 
17
 * @version $Id: Auspraegung_model.php 1810 2016-12-15 19:27:24Z lars $
-
 
18
 * @access public
10
 
19
 */
11
class Auspraegung_model extends CI_Model
20
class Auspraegung_model extends CI_Model
-
 
21
{
-
 
22
	/**
-
 
23
	 * Auspraegung_model::__construct()
-
 
24
	 * 
-
 
25
	 * @return
12
{
26
	 */
13
	public function __construct()
27
	public function __construct()
14
	{
28
	{
15
		parent::__construct();
29
		parent::__construct();
Zeile -... Zeile 30...
-
 
30
	}
-
 
31
 
-
 
32
	/**
-
 
33
	 * Auspraegung_model::get_list()
-
 
34
	 * 
16
	}
35
	 * @return
17
 
36
	 */
18
	public function get_list()
37
	public function get_list()
19
	{
38
	{
20
		$sql = "SELECT
39
		$sql = "SELECT
21
				id
40
				id
22
			FROM
41
			FROM
23
				auspraegung
42
				auspraegung
-
 
43
		";
24
		";
44
		$res = $this->db->query($sql);
25
		$res = $this->db->query($sql);
45
		$rows = array();
26
		while ($row = $res->unbuffered_row('array'))
46
		while ($row = $res->unbuffered_row('array'))
-
 
47
		{
27
		{
48
			$row = $this->get($row["id"]);
-
 
49
			$rows[]=$row;
28
			$row = $this->get($row["id"]);
50
		}
Zeile -... Zeile 51...
-
 
51
		return $rows;
-
 
52
	}
-
 
53
 
-
 
54
	/**
-
 
55
	 * Auspraegung_model::get()
-
 
56
	 * 
29
		}
57
	 * @param mixed $id
30
	}
58
	 * @return
31
 
59
	 */
32
	private function get($id)
60
	private function get($id)
33
	{
61
	{