Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1811 Revision 1812
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: 1811 $
8
 * @version $Rev: 1812 $
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: Artikel_to_auspraegung_model.php 1811 2016-12-15 19:27:51Z lars $
17
 * @version $Id: Artikel_to_auspraegung_model.php 1812 2016-12-15 19:30:00Z lars $
18
 * @access public
18
 * @access public
19
 */
19
 */
20
class Artikel_to_auspraegung_model extends CI_Model
20
class Artikel_to_auspraegung_model extends CI_Model
21
{
21
{
Zeile 38... Zeile 38...
38
	{
38
	{
39
		$sql = "SELECT
39
		$sql = "SELECT
40
				id
40
				id
41
			FROM
41
			FROM
42
				artikel_to_auspraegung
42
				artikel_to_auspraegung
-
 
43
			WHERE
-
 
44
				artikel_id=".$artikel."
43
		";
45
		";
44
		$res = $this->db->query($sql);
46
		$res = $this->db->query($sql);
45
		$rows = array();
47
		$rows = array();
46
		while ($row = $res->unbuffered_row('array'))
48
		while ($row = $res->unbuffered_row('array'))
47
		{
49
		{
48
			$row = $this->get($row["id"]);
50
			$row = $this->get($row["id"]);
49
			$rows[]=$row;
51
			$rows[] = $row;
50
		}
52
		}
51
		return $rows;
53
		return $rows;
52
	}
54
	}
Zeile 53... Zeile 55...
53
 
55