Subversion-Projekte lars-tiefland.ci

Revision

Revision 1836 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1836 Revision 1880
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: 1836 $
8
 * @version $Rev: 1880 $
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: Auspraegung_model.php 1836 2016-12-21 22:48:38Z lars $
17
 * @version $Id: Auspraegung_model.php 1880 2016-12-22 18:06:12Z lars $
18
 * @access public
18
 * @access public
19
 */
19
 */
20
class Auspraegung_model extends CI_Model
20
class Auspraegung_model extends CI_Model
21
{
21
{
Zeile 58... Zeile 58...
58
	 * @return
58
	 * @return
59
	 */
59
	 */
60
	public function get($id)
60
	public function get($id)
61
	{
61
	{
62
		$sql = "SELECT
62
		$sql = "SELECT
63
				*
63
				a.*,
-
 
64
				at.name AS typ
64
			FROM
65
			FROM
65
				auspraegung
66
				auspraegung a
-
 
67
			JOIN
-
 
68
				auspraegung_typ at
-
 
69
			ON
-
 
70
				at.id=a.type
66
			WHERE
71
			WHERE
67
				id=".$id."
72
				a.id=".$id."
68
		";
73
		";
69
		$res = $this->db->query($sql);
74
		$res = $this->db->query($sql);
70
		$row = $res->unbuffered_row('array');
75
		$row = $res->unbuffered_row('array');
71
		return $row;
76
		return $row;
72
	}
77
	}