Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1874 Revision 1882
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: 1874 $
8
 * @version $Rev: 1882 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
/**
11
/**
12
 * Auspraegung_model
12
 * Auspraegung_model
13
 * 
13
 * 
14
 * @package WebanOS CI
14
 * @package WebanOS CI
15
 * @author Lars Tiefland
15
 * @author Lars Tiefland
16
 * @copyright 2016
16
 * @copyright 2016
17
 * @version $Id: Directory_to_auspraegung_model.php 1874 2016-12-22 16:53:14Z lars $
17
 * @version $Id: Directory_to_auspraegung_model.php 1882 2016-12-22 18:16:27Z lars $
18
 * @access public
18
 * @access public
19
 */
19
 */
20
class Directory_to_auspraegung_model extends CI_Model
20
class Directory_to_auspraegung_model extends CI_Model
21
{
21
{
Zeile 25... Zeile 25...
25
	 * @return
25
	 * @return
26
	 */
26
	 */
27
	public function __construct()
27
	public function __construct()
28
	{
28
	{
29
		parent::__construct();
29
		parent::__construct();
-
 
30
		$this->load->model('auspraegung_model','auspraegung');
30
	}
31
	}
Zeile 31... Zeile 32...
31
 
32
 
32
	/**
33
	/**
33
	 * Auspraegung_model::get_list()
34
	 * Auspraegung_model::get_list()
Zeile 45... Zeile 46...
45
		";
46
		";
46
		$res = $this->db->query($sql);
47
		$res = $this->db->query($sql);
47
		$rows = array();
48
		$rows = array();
48
		while ($row = $res->unbuffered_row('array'))
49
		while ($row = $res->unbuffered_row('array'))
49
		{
50
		{
50
			$row = $this->get($row["id"]);
51
			$row = $this->auspraegung->get($row["id"]);
51
			$row["wertebereich"] = $this->get_werte($row["id"], $dir, false);
52
			$row["wertebereich"] = $this->get_werte($row["id"], $dir, false);
52
			$rows[] = $row;
53
			$rows[] = $row;
53
		}
54
		}
54
		return $rows;
55
		return $rows;
55
	}
56
	}
Zeile 56... Zeile -...
56
 
-
 
57
	public function get($ausp)
-
 
58
	{
-
 
59
		$sql = "SELECT
-
 
60
				*
-
 
61
			FROM
-
 
62
				auspraegung
-
 
63
			WHERE
-
 
64
				id=".$ausp."
-
 
65
		";
-
 
66
		$res = $this->db->query($sql);
-
 
67
		$row = $res->unbuffered_row('array');
-
 
68
		return $row;
-
 
69
	}
-
 
70
 
57
 
71
	/**
58
	/**
72
	 * Auspraegung_model::get()
59
	 * Auspraegung_model::get()
73
	 * 
60
	 * 
74
	 * @param mixed $id
61
	 * @param mixed $id